[
https://issues.apache.org/jira/browse/IMPALA-9627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17718354#comment-17718354
]
ASF subversion and git services commented on IMPALA-9627:
---------------------------------------------------------
Commit 8c04113157f7cf828fc3b8a4f3fc8e4db7f93c40 in impala's branch
refs/heads/master from Joe McDonnell
[ https://gitbox.apache.org/repos/asf?p=impala.git;h=8c0411315 ]
IMPALA-9627 (followup): Switch push_to_asf.py to python 3
push_to_asf.py asks the user for input. This recently
switched from raw_input() to input(), because Python 3
doesn't have a raw_input() function.
Python 2's input() function has weird semantics. At the
"[Y/n]:" prompt, typing y (no quotes) produces this error:
NameError: name 'y' is not defined
Instead, it wants 'y' (with quotes). This is because Python 2's
input() function wants a python expression. This switches the
script to use python3, which has the old behavior from
raw_input().
Testing:
- Ran script with Python 3, hand tested the confirm_prompt function
Change-Id: Ida49993bfea71ade9d335ac1ceb53788d0a57f69
Reviewed-on: http://gerrit.cloudera.org:8080/19817
Reviewed-by: Michael Smith <[email protected]>
Tested-by: Joe McDonnell <[email protected]>
> Update Impala utility Python scripts to be Python3 compatible
> -------------------------------------------------------------
>
> Key: IMPALA-9627
> URL: https://issues.apache.org/jira/browse/IMPALA-9627
> Project: IMPALA
> Issue Type: Task
> Components: Infrastructure
> Affects Versions: Impala 4.0.0
> Reporter: Laszlo Gaal
> Assignee: Michael Smith
> Priority: Major
> Fix For: Impala 4.3.0
>
>
> Impala utility Python scripts are the ones that run outside the Impala
> virtualenv with system Python (not impala-python), except for impala-shell.
> These scripts should be updated for Python3 to help the project's migration
> to Python 3 after the retirement of Python 2.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]