From 6b71e747b19c41e0665ee14eb755c924a40dd774 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 9 Feb 2001 08:56:30 +0000 Subject: String method conversion. --- Lib/code.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Lib/code.py') diff --git a/Lib/code.py b/Lib/code.py index f9d8225d1d5..ab1050c12e7 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() -- cgit v1.2.3