diff options
author | Guido van Rossum <guido@python.org> | 2019-03-05 11:31:52 -0800 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2019-03-05 11:36:11 -0800 |
commit | ee95fef4b76a1d088cc717673130d992344282bf (patch) | |
tree | cabfb80eb62bb217208c82330afdfaa711c7bf40 | |
parent | 855e07bc6624ee75132edac153da3912220e88fe (diff) | |
download | cpython-git-ee95fef4b76a1d088cc717673130d992344282bf.tar.gz |
Simplify compile() call in ast.parse()
-rw-r--r-- | Lib/ast.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/ast.py b/Lib/ast.py index 819be1f4c3..64e7a2551f 100644 --- a/Lib/ast.py +++ b/Lib/ast.py @@ -38,10 +38,7 @@ def parse(source, filename='<unknown>', mode='exec', *, if type_comments: flags |= PyCF_TYPE_COMMENTS return compile(source, filename, mode, flags, - dont_inherit=False, - optimize=-1, - feature_version=feature_version, - ) + feature_version=feature_version) def literal_eval(node_or_string): |