[
https://issues.apache.org/jira/browse/IMPALA-11952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694656#comment-17694656
]
ASF subversion and git services commented on IMPALA-11952:
----------------------------------------------------------
Commit c71de994b07c3863104b7626c6fd15a5650c066c in impala's branch
refs/heads/master from Joe McDonnell
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=c71de994b ]
IMPALA-11952 (part 1): Fix except syntax
Python 3 does not support this old except syntax:
except Exception, e:
Instead, it needs to be:
except Exception as e:
This uses impala-futurize to fix all locations of
the old syntax.
Testing:
- The check-python-syntax.sh no longer shows errors
for except syntax.
Change-Id: I1737281a61fa159c8d91b7d4eea593177c0bd6c9
Reviewed-on: http://gerrit.cloudera.org:8080/19551
Reviewed-by: Joe McDonnell <[email protected]>
Reviewed-by: Michael Smith <[email protected]>
Tested-by: Michael Smith <[email protected]>
> Fix all syntax errors for Python 3
> ----------------------------------
>
> Key: IMPALA-11952
> URL: https://issues.apache.org/jira/browse/IMPALA-11952
> Project: IMPALA
> Issue Type: Sub-task
> Components: Infrastructure
> Affects Versions: Impala 4.3.0
> Reporter: Joe McDonnell
> Assignee: Joe McDonnell
> Priority: Major
>
> There are several categories of syntax fixes:
> # Except syntax
> # Raise syntax
> # print function
> # Odds and ends (octal constants, long constants, etc)
> Note that this does not cover non-syntax issues like xrange or iteritems.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]