From: Guido van Rossum Date: Mon, 29 Mar 1999 14:52:28 +0000 (+0000) Subject: At Tim Peters' recommendation, add a dummy flush() method to PseudoFile. X-Git-Tag: v1.5.2c1~64 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=825df2a14d87bf0b668ee7e0a16662c6efc0853c;p=thirdparty%2FPython%2Fcpython.git At Tim Peters' recommendation, add a dummy flush() method to PseudoFile. --- diff --git a/Tools/idle/PyShell.py b/Tools/idle/PyShell.py index e197ad623745..8bee5d5e9e76 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 0e7810b1cca8..a1a7f2cf8a47 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: