diff options
author | Guido van Rossum <guido@python.org> | 1998-10-19 18:42:53 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-19 18:42:53 +0000 |
commit | c511f834af6193d77cbfbbb16bb669d7e1c07236 (patch) | |
tree | 933a6a3177dbea5c23749253dafda7c438c44bda /Lib/code.py | |
parent | ac5479c5c4253d502a240312e2cf02420aa46c9b (diff) | |
download | cpython-c511f834af6193d77cbfbbb16bb669d7e1c07236.tar.gz |
Rename 'locals' argument to top-level interact() function to 'local'
for b/w compatibility with 1.5.1.
Diffstat (limited to 'Lib/code.py')
-rw-r--r-- | Lib/code.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/code.py b/Lib/code.py index 3554b35de9..94e7777dc9 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -340,7 +340,7 @@ class InteractiveConsole(InteractiveInterpreter): return raw_input(prompt) -def interact(banner=None, readfunc=None, locals=None): +def interact(banner=None, readfunc=None, local=None): """Closely emulate the interactive Python interpreter. This is a backwards compatible interface to the InteractiveConsole @@ -351,10 +351,10 @@ def interact(banner=None, readfunc=None, locals=None): banner -- passed to InteractiveConsole.interact() readfunc -- if not None, replaces InteractiveConsole.raw_input() - locals -- passed to InteractiveInterpreter.__init__() + local -- passed to InteractiveInterpreter.__init__() """ - console = InteractiveConsole(locals) + console = InteractiveConsole(local) if readfunc is not None: console.raw_input = readfunc else: |