summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-03-29 14:52:28 (GMT)
committerGuido van Rossum <guido@python.org>1999-03-29 14:52:28 (GMT)
commit825df2a14d87bf0b668ee7e0a16662c6efc0853c (patch)
tree0002b337c8b77cf74a7c17b6ad88fbecda987a9f /Tools
parent02ef28b9a93c12586a7cee6bb731b9be8b529ff4 (diff)
downloadcpython-825df2a14d87bf0b668ee7e0a16662c6efc0853c.zip
cpython-825df2a14d87bf0b668ee7e0a16662c6efc0853c.tar.gz
cpython-825df2a14d87bf0b668ee7e0a16662c6efc0853c.tar.bz2
At Tim Peters' recommendation, add a dummy flush() method to PseudoFile.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/PyShell.py3
-rw-r--r--Tools/idle/ScriptBinding.py3
2 files changed, 6 insertions, 0 deletions
diff --git a/Tools/idle/PyShell.py b/Tools/idle/PyShell.py
index e197ad6..8bee5d5 100644
--- a/Tools/idle/PyShell.py
+++ b/Tools/idle/PyShell.py
@@ -593,6 +593,9 @@ class PseudoFile:
def writelines(self, l):
map(self.write, l)
+ def flush(self):
+ pass
+
def main():
debug = 0
diff --git a/Tools/idle/ScriptBinding.py b/Tools/idle/ScriptBinding.py
index 0e7810b..a1a7f2c 100644
--- a/Tools/idle/ScriptBinding.py
+++ b/Tools/idle/ScriptBinding.py
@@ -70,6 +70,9 @@ class PseudoFile:
def writelines(self, l):
map(self.write, l)
+ def flush(self):
+ pass
+
class ScriptBinding: