diff options
Diffstat (limited to 'Lib/code.py')
-rw-r--r-- | Lib/code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/code.py b/Lib/code.py index 1ee1ad62ff4..9d124563f72 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -281,7 +281,7 @@ class InteractiveConsole(InteractiveInterpreter): elif exitmsg != '': self.write('%s\n' % exitmsg) - def push(self, line, filename=None): + def push(self, line, filename=None, _symbol="single"): """Push a line to the interpreter. The line should not have a trailing newline; it may have @@ -299,7 +299,7 @@ class InteractiveConsole(InteractiveInterpreter): source = "\n".join(self.buffer) if filename is None: filename = self.filename - more = self.runsource(source, filename) + more = self.runsource(source, filename, symbol=_symbol) if not more: self.resetbuffer() return more |