diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-05-29 19:33:09 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-05-29 19:33:09 +0200 |
commit | 999e3357c73a48fea6df8a772435af696b3f01c0 (patch) | |
tree | 9c2ee84afa40d828b5466496acfa57f6881a2bbf /testsuite | |
parent | 3fbadb7007436c029a3ede4c057ce43171dcd617 (diff) | |
parent | d1c33daa99c1325c16cba857248134008328fc8a (diff) | |
download | pep8-999e3357c73a48fea6df8a772435af696b3f01c0.tar.gz |
Report E266 instead of E265 when the block common starts with multiple #; issue #270
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/E26.py | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/testsuite/E26.py b/testsuite/E26.py index d838e70..509babf 100644 --- a/testsuite/E26.py +++ b/testsuite/E26.py @@ -1,18 +1,33 @@ -#: E261 +#: E261:1:5 pass # an inline comment -#: E262 +#: E262:1:12 x = x + 1 #Increment x -#: E262 +#: E262:1:12 x = x + 1 # Increment x -#: E262 +#: E262:1:12 x = y + 1 #: Increment x -#: E265 +#: E265:1:1 #Block comment a = 1 -#: E265 +#: E265:2:1 m = 42 #! This is important mx = 42 - 42 +#: E266:3:5 E266:6:5 +def how_it_feel(r): + + ### This is a variable ### + a = 42 + + ### Of course it is unused + return +#: E265:1:1 E266:2:1 +##if DEBUG: +## logging.error() +#: W291:1:42 +######################################### +#: + #: Okay #!/usr/bin/env python @@ -34,3 +49,11 @@ def oof(): """ #foo not parsed """ + + ########################################################################### + # A SEPARATOR # + ########################################################################### + + # ####################################################################### # + # ########################## another separator ########################## # + # ####################################################################### # |