From 825df2a14d87bf0b668ee7e0a16662c6efc0853c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 29 Mar 1999 14:52:28 +0000 Subject: At Tim Peters' recommendation, add a dummy flush() method to PseudoFile. --- Tools/idle/PyShell.py | 3 +++ Tools/idle/ScriptBinding.py | 3 +++ 2 files changed, 6 insertions(+) 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: -- cgit v0.12