summaryrefslogtreecommitdiff
path: root/Lib/code.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 08:56:30 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 08:56:30 +0000
commit2ae8b7f00bd114a86ad2b1837b88db32765b44cd (patch)
tree1c4a4a263582bf5da93f60b5c16ee76207c5b99e /Lib/code.py
parent9927befff8085aa85801c6e2e0738f16ea1c1628 (diff)
downloadcpython-2ae8b7f00bd114a86ad2b1837b88db32765b44cd.tar.gz
String method conversion.
Diffstat (limited to 'Lib/code.py')
-rw-r--r--Lib/code.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/code.py b/Lib/code.py
index f9d8225d1d..ab1050c12e 100644
--- a/Lib/code.py
+++ b/Lib/code.py
@@ -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()