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 18:09:31 UTC

[GitHub] hadoop issue #436: Use print() function in both Python 2 and Python 3

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