Commit bb369d9
cclauss
Undefined names: from colorama import Fore, Back
__Fore__ and __Back__ are used on line 128 but they are never defined or imported. That means that they are _undefined names_ which have the potential to raise NameError at runtime.
[flake8](http://flake8.pycqa.org) testing of https://github.com/python-cmd2/cmd2 on Python 3.7.1
$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./examples/plumbum_colors.py:127:21: F821 undefined name 'Fore'
color_off = Fore.RESET + Back.RESET
^
./examples/plumbum_colors.py:127:34: F821 undefined name 'Back'
color_off = Fore.RESET + Back.RESET
^
```1 parent fc0ce00 commit bb369d9
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
0 commit comments