From 79139b247b0bc0bc1b1a12932140bbd4bc188df7 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 9 Feb 2007 23:20:19 +0000 Subject: Kill off softspace completely (except in formatter.py which seems to have a different feature with the same name). The change to test_doctest.txt reduces the doctest failures to 3. --- Lib/code.py | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'Lib/code.py') diff --git a/Lib/code.py b/Lib/code.py index 8532a2eeb9d..71827777f5d 100644 --- a/Lib/code.py +++ b/Lib/code.py @@ -12,19 +12,6 @@ from codeop import CommandCompiler, compile_command __all__ = ["InteractiveInterpreter", "InteractiveConsole", "interact", "compile_command"] -def softspace(file, newvalue): - oldvalue = 0 - try: - oldvalue = file.softspace - except AttributeError: - pass - try: - file.softspace = newvalue - except (AttributeError, TypeError): - # "attribute-less object" or "read-only attributes" - pass - return oldvalue - class InteractiveInterpreter: """Base class for InteractiveConsole. @@ -105,9 +92,6 @@ class InteractiveInterpreter: raise except: self.showtraceback() - else: - if softspace(sys.stdout, 0): - print() def showsyntaxerror(self, filename=None): """Display the syntax error that just occurred. -- cgit v1.2.3