summaryrefslogtreecommitdiffstats
path: root/Lib/code.py
diff options
context:
space:
mode:
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()