You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by cclauss <gi...@git.apache.org> on 2018/10/31 17:57:19 UTC
[GitHub] hadoop pull request #436: Use print() function in both Python 2 and Python 3
GitHub user cclauss opened a pull request:
https://github.com/apache/hadoop/pull/436
Use print() function in both Python 2 and Python 3
__print()__ is a function in Python 3.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cclauss/hadoop modernize-Python-2-codes
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/hadoop/pull/436.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #436
----
commit d94224777a05c3373f92349d98e566507df4981a
Author: cclauss <cc...@...>
Date: 2018-10-31T17:55:06Z
Use print() function in both Python 2 and Python 3
__print()__ is a function in Python 3.
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org
[GitHub] hadoop issue #436: Use print() function in both Python 2 and Python 3
Posted by cclauss <gi...@git.apache.org>.
Github user cclauss commented on the issue:
https://github.com/apache/hadoop/pull/436
[flake8](http://flake8.pycqa.org) testing of https://github.com/apache/hadoop on Python 3.7.1
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./hadoop-mapreduce-project/hadoop-mapreduce-examples/src/main/java/org/apache/hadoop/examples/terasort/job_history_summary.py:73:61: E999 SyntaxError: invalid syntax
print "Name reduce-output-bytes shuffle-finish reduce-finish"
^
./dev-support/determine-flaky-tests-hadoop.py:125:5: F823 local variable 'error_count' (defined in enclosing scope on line 76) referenced before assignment
error_count += 1
^
./dev-support/bin/checkcompatibility.py:195:10: F821 undefined name 'file'
with file(annotations_path, "w") as f:
^
1 E999 SyntaxError: invalid syntax
1 F821 undefined name 'file'
1 F823 local variable 'error_count' (defined in enclosing scope on line 76) referenced before assignment
3
```
---
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org