You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/08/15 22:16:22 UTC

[GitHub] cclauss edited a comment on issue #8270: 1 Syntax error and 5 undefined names in Python code

cclauss edited a comment on issue #8270: 1 Syntax error and 5 undefined names in Python code
URL: https://github.com/apache/incubator-mxnet/issues/8270#issuecomment-413354049
 
 
   * #12191 should fix __cmp()__
   * #12188 Should fix __reload()__
   * https://github.com/apache/incubator-mxnet/commit/f3070fbe04b94e9715ef950cb33ce3402be5c077#r30092025 added three new undefined names
   * https://github.com/apache/incubator-mxnet/commit/c220974f3de322d88dafb66eadd3f26ba3e07232#r30091782 added one new syntax error
   [flake8](http://flake8.pycqa.org) testing of https://github.com/apache/incubator-mxnet on Python 3.7.0
   
   $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
   ```
   ./amalgamation/python/mxnet_predict.py:68:40: F821 undefined name 'libinfo_py'
                   libinfo = {'__file__': libinfo_py}
                                          ^
   ./amalgamation/python/mxnet_predict.py:69:35: F821 undefined name 'libinfo_py'
                   exec(compile(open(libinfo_py, "rb").read(), libinfo_py, 'exec'), libinfo, libinfo)
                                     ^
   ./amalgamation/python/mxnet_predict.py:69:61: F821 undefined name 'libinfo_py'
                   exec(compile(open(libinfo_py, "rb").read(), libinfo_py, 'exec'), libinfo, libinfo)
                                                               ^
   ./tests/python/unittest/test_engine_import.py:33:13: F821 undefined name 'reload'
               reload(mxnet)
               ^
   ./tests/nightly/model_backwards_compatibility_check/common.py:216:12: F821 undefined name 'cmp'
       return cmp(normalize(version1), normalize(version2))
              ^
   ./docs/mxdoc.py:44:27: E999 SyntaxError: invalid syntax
           print '%-12s  : %s' % (candidate, parser.get(section, candidate))
                             ^
   1     E999 SyntaxError: invalid syntax
   5     F821 undefined name 'libinfo_py'
   6
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services