Mercurial > cpython-lru_cache-weakref
diff Lib/code.py @ 16495:69f162dcd8b4 legacy-trunk
String method conversion.
| author | Eric S. Raymond <esr@thyrsus.com> |
|---|---|
| date | Fri, 09 Feb 2001 08:56:30 +0000 |
| parents | b5345e99596b |
| children | 12c80b570d00 |
line wrap: on
line diff
--- a/Lib/code.py Fri Feb 09 08:40:40 2001 +0000 +++ b/Lib/code.py Fri Feb 09 08:56:30 2001 +0000 @@ -6,7 +6,6 @@ import sys -import string import traceback from codeop import compile_command @@ -260,7 +259,7 @@ """ 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()
