diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-06-12 14:17:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-12 14:17:05 (GMT) |
commit | b2fd32b2f041402bb9fc8607f01566c055aafed9 (patch) | |
tree | 4489daefdbb66d8ee6a2c544e17a9d057752965e /Lib/ast.py | |
parent | 70a4178ec47154fdcc3ff06c13149e178d014581 (diff) | |
download | cpython-b2fd32b2f041402bb9fc8607f01566c055aafed9.zip cpython-b2fd32b2f041402bb9fc8607f01566c055aafed9.tar.gz cpython-b2fd32b2f041402bb9fc8607f01566c055aafed9.tar.bz2 |
bpo-35766: compile(): rename feature_version parameter (GH-13994) (GH-14001)
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.
(cherry picked from commit efdf6ca90f7702824e7aeee1ceca949e7c20288a)
Diffstat (limited to 'Lib/ast.py')
-rw-r--r-- | Lib/ast.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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): |