summaryrefslogtreecommitdiff
path: root/Lib/ast.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-06-12 02:52:16 +0200
committerGitHub <noreply@github.com>2019-06-12 02:52:16 +0200
commitefdf6ca90f7702824e7aeee1ceca949e7c20288a (patch)
treea2c5c8e15727ea81da25c850522de4e201f36829 /Lib/ast.py
parent10b55c1643b512b3a2cae8ab89c53683a13ca43e (diff)
downloadcpython-git-efdf6ca90f7702824e7aeee1ceca949e7c20288a.tar.gz
bpo-35766: compile(): rename feature_version parameter (GH-13994)
Rename compile() feature_version parameter to _feature_version and convert it to a keyword-only parameter. Update also test_type_comments to pass feature_version as a tuple.
Diffstat (limited to 'Lib/ast.py')
-rw-r--r--Lib/ast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/ast.py b/Lib/ast.py
index 70fbbdd2ff..ffeba179e5 100644
--- a/Lib/ast.py
+++ b/Lib/ast.py
@@ -45,7 +45,7 @@ def parse(source, filename='<unknown>', mode='exec', *,
feature_version = -1
# Else it should be an int giving the minor version for 3.x.
return compile(source, filename, mode, flags,
- feature_version=feature_version)
+ _feature_version=feature_version)
def literal_eval(node_or_string):