diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-26 21:02:05 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2014-04-26 21:02:05 +0200 |
commit | ddebc11cdde6674a767e23ccdcf390b2340ffd80 (patch) | |
tree | 8ba8712bcdde36c8b45a4ca7f795f6f8d00e36e1 /testsuite/E26.py | |
parent | a176b77c22ef0c0263ca4f956b9b7c91ea659885 (diff) | |
download | pep8-ddebc11cdde6674a767e23ccdcf390b2340ffd80.tar.gz |
Report E266 instead of E265 when the block common starts with multiple #; issue #270
Diffstat (limited to 'testsuite/E26.py')
-rw-r--r-- | testsuite/E26.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/testsuite/E26.py b/testsuite/E26.py index d838e70..9971f13 100644 --- a/testsuite/E26.py +++ b/testsuite/E26.py @@ -13,6 +13,21 @@ a = 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 ########################## # + # ####################################################################### # |