mirror of
https://github.com/python/cpython.git
synced 2025-08-23 10:16:01 +00:00
String method conversion.
This commit is contained in:
parent
141971f22a
commit
6b71e747b1
5 changed files with 14 additions and 18 deletions
|
@ -6,7 +6,6 @@
|
|||
|
||||
|
||||
import sys
|
||||
import string
|
||||
import traceback
|
||||
from codeop import compile_command
|
||||
|
||||
|
@ -260,7 +259,7 @@ class InteractiveConsole(InteractiveInterpreter):
|
|||
|
||||
"""
|
||||
self.buffer.append(line)
|
||||
source = string.join(self.buffer, "\n")
|
||||
source = "\n".join(self.buffer)
|
||||
more = self.runsource(source, self.filename)
|
||||
if not more:
|
||||
self.resetbuffer()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue