Skip to content

Commit e2a366d

Browse files
committed
remove handling of python 2 ur'' strings
1 parent 8ca4b7f commit e2a366d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pycodestyle.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,7 @@ def continued_indentation(logical_line, tokens, indent_level, hang_closing,
686686
if verbose >= 4:
687687
print(f"bracket depth {depth} indent to {start[1]}")
688688
# deal with implicit string concatenation
689-
elif (token_type in (tokenize.STRING, tokenize.COMMENT) or
690-
text in ('u', 'ur', 'b', 'br')):
689+
elif token_type in (tokenize.STRING, tokenize.COMMENT):
691690
indent_chances[start[1]] = str
692691
# visual indent after assert/raise/with
693692
elif not row and not depth and text in ["assert", "raise", "with"]:

testing/data/E12not.py

-3
Original file line numberDiff line numberDiff line change
@@ -429,9 +429,6 @@ def unicode2html(s):
429429
help = u"print total number of errors " \
430430
u"to standard error"
431431

432-
help = ur"print total number of errors " \
433-
ur"to standard error"
434-
435432
help = b"print total number of errors " \
436433
b"to standard error"
437434

0 commit comments

Comments
 (0)