Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d90ae19

Browse files
committed
Rename 'locals' argument to top-level interact() function to 'local'
for b/w compatibility with 1.5.1.
1 parent 649e8c1 commit d90ae19

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def raw_input(self, prompt=""):
340340
return raw_input(prompt)
341341

342342

343-
def interact(banner=None, readfunc=None, locals=None):
343+
def interact(banner=None, readfunc=None, local=None):
344344
"""Closely emulate the interactive Python interpreter.
345345
346346
This is a backwards compatible interface to the InteractiveConsole
@@ -351,10 +351,10 @@ def interact(banner=None, readfunc=None, locals=None):
351351
352352
banner -- passed to InteractiveConsole.interact()
353353
readfunc -- if not None, replaces InteractiveConsole.raw_input()
354-
locals -- passed to InteractiveInterpreter.__init__()
354+
local -- passed to InteractiveInterpreter.__init__()
355355
356356
"""
357-
console = InteractiveConsole(locals)
357+
console = InteractiveConsole(local)
358358
if readfunc is not None:
359359
console.raw_input = readfunc
360360
else:

0 commit comments

Comments
 (0)