Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolve five undefined names found by flake8 (#112)
* Typo: J.kill_vm() --> javabridge.kill_vm() [flake8](http://flake8.pycqa.org) testing of https://github.com/CellProfiler/python-bioformats on Python 2.7.14 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./bioformats/__init__.py:98:5: F821 undefined name 'J' J.kill_vm() ^ ./bioformats/formatreader.py:751:59: F821 undefined name 'path' "The file, \"%s\", does not exist." % path, ^ ./bioformats/formatreader.py:752:21: F821 undefined name 'path' path) ^ ./bioformats/omexml.py:1164:39: F821 undefined name 'NS_SPW' make_text_node(self.node, NS_SPW, "Description", test) ^ ./bioformats/omexml.py:1164:62: F821 undefined name 'test' make_text_node(self.node, NS_SPW, "Description", test) ^ 5 F821 undefined name 'J' 5 ``` * Undefined name: ' path' --> 'self.path' __path__ is an _undefined name_ in the context which will probably raise a __NameError__ at runtime instead of the desired Exception. * Undefined name: 'test' --> 'text' __NS_SPW__ is probably somehow related to https://www.openmicroscopy.org/Schemas/SPW/2015-01/SPW.xsd * Undefined name: NS_SPW --> self.ns['spw']
- Loading branch information