mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #22823: Use set literals in lib2to3.
This commit is contained in:
parent
bd62f0a6e4
commit
db9b65d9e5
4 changed files with 8 additions and 8 deletions
|
@ -32,7 +32,7 @@ class PatternSyntaxError(Exception):
|
|||
|
||||
def tokenize_wrapper(input):
|
||||
"""Tokenizes a string suppressing significant whitespace."""
|
||||
skip = set((token.NEWLINE, token.INDENT, token.DEDENT))
|
||||
skip = {token.NEWLINE, token.INDENT, token.DEDENT}
|
||||
tokens = tokenize.generate_tokens(io.StringIO(input).readline)
|
||||
for quintuple in tokens:
|
||||
type, value, start, end, line_text = quintuple
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue