Skip to content

Commit

Permalink
Merge pull request #1181 from PyCQA/py2-ur-strings
Browse files Browse the repository at this point in the history
remove handling of python 2 ur'' strings
  • Loading branch information
asottile authored Jul 29, 2023
2 parents 8ca4b7f + e2a366d commit 706ae9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions pycodestyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,7 @@ def continued_indentation(logical_line, tokens, indent_level, hang_closing,
if verbose >= 4:
print(f"bracket depth {depth} indent to {start[1]}")
# deal with implicit string concatenation
elif (token_type in (tokenize.STRING, tokenize.COMMENT) or
text in ('u', 'ur', 'b', 'br')):
elif token_type in (tokenize.STRING, tokenize.COMMENT):
indent_chances[start[1]] = str
# visual indent after assert/raise/with
elif not row and not depth and text in ["assert", "raise", "with"]:
Expand Down
3 changes: 0 additions & 3 deletions testing/data/E12not.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,9 +429,6 @@ def unicode2html(s):
help = u"print total number of errors " \
u"to standard error"

help = ur"print total number of errors " \
ur"to standard error"

help = b"print total number of errors " \
b"to standard error"

Expand Down

0 comments on commit 706ae9d

Please sign in to comment.