[ 
https://issues.apache.org/jira/browse/IMPALA-11952?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694658#comment-17694658
 ] 

ASF subversion and git services commented on IMPALA-11952:
----------------------------------------------------------

Commit c1794023bc35062b041b76012bfd1b1f6078d036 in impala's branch 
refs/heads/master from Joe McDonnell
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=c1794023b ]

IMPALA-11952 (part 3): Fix raise syntax

Python 3 does not support this old raise syntax:

raise Exception, "message"

Instead, it should be:

raise Exception("message")

This fixes all locations with the old raise syntax.

Testing:
 - check-python-syntax.sh shows no errors from raise syntax

Change-Id: I2722dcc2727fb65c7aedede12d73ca5b088326d7
Reviewed-on: http://gerrit.cloudera.org:8080/19553
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]

Reply via email to