summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-11-09 15:56:33 -0800
committerRaymond Hettinger <python@rcn.com>2014-11-09 15:56:33 -0800
commitdf1b69944796caa6854049caf624d32c408c27d5 (patch)
tree655332d48c8fd87bbc06e5e624238342c4ebdb94 /Parser/asdl.py
parentIssue #22695: Fix rendering of the deprecated-removed role in HTML. (diff)
downloadcpython-df1b69944796caa6854049caf624d32c408c27d5.tar.gz
cpython-df1b69944796caa6854049caf624d32c408c27d5.tar.bz2
cpython-df1b69944796caa6854049caf624d32c408c27d5.zip
Issue #22823: Use set literals instead of creating a set from a list
Diffstat (limited to 'Parser/asdl.py')
-rw-r--r--Parser/asdl.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Parser/asdl.py b/Parser/asdl.py
index 4618416c57a..121cdab9520 100644
--- a/Parser/asdl.py
+++ b/Parser/asdl.py
@@ -33,8 +33,7 @@ __all__ = [
# See the EBNF at the top of the file to understand the logical connection
# between the various node types.
-builtin_types = set(
- ['identifier', 'string', 'bytes', 'int', 'object', 'singleton'])
+builtin_types = {'identifier', 'string', 'bytes', 'int', 'object', 'singleton'}
class AST:
def __repr__(self):