Commit 22f5bcb
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']1 parent 5d92c8e commit 22f5bcb
3 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
748 | 748 | | |
749 | 749 | | |
750 | 750 | | |
751 | | - | |
752 | | - | |
| 751 | + | |
| 752 | + | |
753 | 753 | | |
754 | 754 | | |
755 | 755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1161 | 1161 | | |
1162 | 1162 | | |
1163 | 1163 | | |
1164 | | - | |
| 1164 | + | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| |||
0 commit comments