diff options
author | Raymond Hettinger <python@rcn.com> | 2014-11-09 15:56:33 -0800 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2014-11-09 15:56:33 -0800 |
commit | df1b69944796caa6854049caf624d32c408c27d5 (patch) | |
tree | 655332d48c8fd87bbc06e5e624238342c4ebdb94 /Lib/sre_parse.py | |
parent | bf764a1912b084e5fc9acd6cb160e66060bc368a (diff) | |
download | cpython-git-df1b69944796caa6854049caf624d32c408c27d5.tar.gz |
Issue #22823: Use set literals instead of creating a set from a list
Diffstat (limited to 'Lib/sre_parse.py')
-rw-r--r-- | Lib/sre_parse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/sre_parse.py b/Lib/sre_parse.py index edc3ff143a..57b15e7be3 100644 --- a/Lib/sre_parse.py +++ b/Lib/sre_parse.py @@ -25,8 +25,8 @@ HEXDIGITS = frozenset("0123456789abcdefABCDEF") WHITESPACE = frozenset(" \t\n\r\v\f") -_REPEATCODES = frozenset((MIN_REPEAT, MAX_REPEAT)) -_UNITCODES = frozenset((ANY, RANGE, IN, LITERAL, NOT_LITERAL, CATEGORY)) +_REPEATCODES = frozenset({MIN_REPEAT, MAX_REPEAT}) +_UNITCODES = frozenset({ANY, RANGE, IN, LITERAL, NOT_LITERAL, CATEGORY}) ESCAPES = { r"\a": (LITERAL, ord("\a")), |