summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTerry Reedy <tjreedy@udel.edu>2011-01-24 21:46:05 (GMT)
committerTerry Reedy <tjreedy@udel.edu>2011-01-24 21:46:05 (GMT)
commite2248f9e6d9b048e61d5117a6621e46e7df1866d (patch)
tree9af9443ac11b9b1c89cdb65bb60555f7f2a1b83c /Lib
parent0f2a61a11eccea4d4ecddc30147116aae5ec09ab (diff)
downloadcpython-e2248f9e6d9b048e61d5117a6621e46e7df1866d.zip
cpython-e2248f9e6d9b048e61d5117a6621e46e7df1866d.tar.gz
cpython-e2248f9e6d9b048e61d5117a6621e46e7df1866d.tar.bz2
Issue #11000 ast.parse doc fix (r88172) + tix fix (r88170)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/ast.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/ast.py b/Lib/ast.py
index f8c4d3c..112c970 100644
--- a/Lib/ast.py
+++ b/Lib/ast.py
@@ -29,12 +29,12 @@ from _ast import *
from _ast import __version__
-def parse(expr, filename='<unknown>', mode='exec'):
+def parse(source, filename='<unknown>', mode='exec'):
"""
- Parse an expression into an AST node.
- Equivalent to compile(expr, filename, mode, PyCF_ONLY_AST).
+ Parse the source into an AST node.
+ Equivalent to compile(source, filename, mode, PyCF_ONLY_AST).
"""
- return compile(expr, filename, mode, PyCF_ONLY_AST)
+ return compile(source, filename, mode, PyCF_ONLY_AST)
def literal_eval(node_or_string):