summaryrefslogtreecommitdiffstats
path: root/Lib/lib2to3/patcomp.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-12-13 19:50:49 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-12-13 19:50:49 (GMT)
commitdb9b65d9e5d9d39199714cfd15a26e46ab0eaae1 (patch)
treec8b2b598895c948a49ece65b52936f477eea89fd /Lib/lib2to3/patcomp.py
parentbd62f0a6e4705ff6ae627df6afe9d871778f80eb (diff)
downloadcpython-db9b65d9e5d9d39199714cfd15a26e46ab0eaae1.zip
cpython-db9b65d9e5d9d39199714cfd15a26e46ab0eaae1.tar.gz
cpython-db9b65d9e5d9d39199714cfd15a26e46ab0eaae1.tar.bz2
Issue #22823: Use set literals in lib2to3.
Diffstat (limited to 'Lib/lib2to3/patcomp.py')
-rw-r--r--Lib/lib2to3/patcomp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib2to3/patcomp.py b/Lib/lib2to3/patcomp.py
index 0a259e9..2012ec4 100644
--- a/Lib/lib2to3/patcomp.py
+++ b/Lib/lib2to3/patcomp.py
@@ -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