summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-02-09 23:20:19 (GMT)
committerGuido van Rossum <guido@python.org>2007-02-09 23:20:19 (GMT)
commit79139b247b0bc0bc1b1a12932140bbd4bc188df7 (patch)
treefef7ef79dcb4e2a1ca033e725b1c2d802e9447d2 /Lib/idlelib
parentbdc36e4d9e754dd00f17f67a943217a1829c75b3 (diff)
downloadcpython-79139b247b0bc0bc1b1a12932140bbd4bc188df7.zip
cpython-79139b247b0bc0bc1b1a12932140bbd4bc188df7.tar.gz
cpython-79139b247b0bc0bc1b1a12932140bbd4bc188df7.tar.bz2
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.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/PyShell.py2
-rw-r--r--Lib/idlelib/run.py7
2 files changed, 1 insertions, 8 deletions
diff --git a/Lib/idlelib/PyShell.py b/Lib/idlelib/PyShell.py
index e8284d8..4c16db9 100644
--- a/Lib/idlelib/PyShell.py
+++ b/Lib/idlelib/PyShell.py
@@ -1223,7 +1223,6 @@ class PyShell(OutputWindow):
self.text.insert("end-1c", "\n")
self.text.mark_set("iomark", "end-1c")
self.set_line_and_column()
- sys.stdout.softspace = 0
def write(self, s, tags=()):
try:
@@ -1242,7 +1241,6 @@ class PseudoFile(object):
def __init__(self, shell, tags, encoding=None):
self.shell = shell
self.tags = tags
- self.softspace = 0
self.encoding = encoding
def write(self, s):
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py
index fa201a8..8a0b926 100644
--- a/Lib/idlelib/run.py
+++ b/Lib/idlelib/run.py
@@ -190,12 +190,7 @@ def cleanup_traceback(tb, exclude):
tb[i] = fn, ln, nm, line
def flush_stdout():
- try:
- if sys.stdout.softspace:
- sys.stdout.softspace = 0
- sys.stdout.write("\n")
- except (AttributeError, EOFError):
- pass
+ """XXX How to do this now?"""
def exit():
"""Exit subprocess, possibly after first deleting sys.exitfunc