summaryrefslogtreecommitdiffstats
path: root/Lib/code.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-02-09 08:56:30 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2001-02-09 08:56:30 (GMT)
commit6b71e747b19c41e0665ee14eb755c924a40dd774 (patch)
treeba208a6616870c43672678ad07b772435aef6fa0 /Lib/code.py
parent141971f22a1269e782b1481779f766629ac83afc (diff)
downloadcpython-6b71e747b19c41e0665ee14eb755c924a40dd774.zip
cpython-6b71e747b19c41e0665ee14eb755c924a40dd774.tar.gz
cpython-6b71e747b19c41e0665ee14eb755c924a40dd774.tar.bz2
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 f9d8225..ab1050c 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()