diff options
author | memeplex <carlosjosepita@gmail.com> | 2016-06-28 21:16:36 -0300 |
---|---|---|
committer | memeplex <carlosjosepita@gmail.com> | 2016-06-28 21:16:36 -0300 |
commit | 36e3400f65268d1ee76845a74aae5b0112182ef8 (patch) | |
tree | fce1917ce6a2adeb6663feeb4e9157d152318a25 /testsuite | |
parent | 4438622d0b62df53a1999301d1bdc9fa119ae763 (diff) | |
download | pep8-36e3400f65268d1ee76845a74aae5b0112182ef8.tar.gz |
Special case for nested functions an classes (fixes #28)
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/E30.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/E30.py b/testsuite/E30.py index 1471079..e5a3504 100644 --- a/testsuite/E30.py +++ b/testsuite/E30.py @@ -118,6 +118,28 @@ if a(): a() #: +#: E306:3:5 +def a(): + x = 1 + def b(): + pass +#: E306:3:5 E306:5:9 +def a(): + x = 2 + def b(): + x = 1 + def c(): + pass +#: E306:3:5 E306:6:5 +def a(): + x = 1 + class C: + pass + x = 2 + def b(): + pass +#: + #: E305:8:1 # Example from https://github.com/PyCQA/pycodestyle/issues/400 import stuff |