diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2012-05-27 11:48:06 +0200 |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2012-05-27 11:48:06 +0200 |
commit | d2e1de033a03e150ae7b4affee3f028cd1173d7a (patch) | |
tree | fc55d2355c2d0b5bbfd1bd1af759bb036fca7c85 /testsuite | |
parent | 23339acd1c256bdbba5c10ddfbd704b7c220c242 (diff) | |
download | pep8-d2e1de033a03e150ae7b4affee3f028cd1173d7a.tar.gz |
Add E502 for extraneous backslashes.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/E50.py | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/E50.py b/testsuite/E50.py index 1c26e4f..1ddfbf0 100644 --- a/testsuite/E50.py +++ b/testsuite/E50.py @@ -1,2 +1,24 @@ #: E501 a = '12345678901234567890123456789012345678901234567890123456789012345678901234567890' +#: E502 +a = ('123456789012345678901234567890123456789012345678901234567890123456789' \ + '01234567890') +# +#: Okay +a = ('123456789012345678901234567890123456789012345678901234567890123456789' + '01234567890') +# +#: Okay +a = '123456789012345678901234567890123456789012345678901234567890123456789' \ + '1234567890123456789012345678901234567890123456789012345678901234' \ + '5678901234567890' +# +#: Okay +if aaa: + pass +elif bbb or \ + ccc: + pass + +ddd = \ + ccc |