mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
At Tim Peters' recommendation, add a dummy flush() method to PseudoFile.
This commit is contained in:
parent
02ef28b9a9
commit
825df2a14d
2 changed files with 6 additions and 0 deletions
|
@ -593,6 +593,9 @@ class PseudoFile:
|
|||
def writelines(self, l):
|
||||
map(self.write, l)
|
||||
|
||||
def flush(self):
|
||||
pass
|
||||
|
||||
|
||||
def main():
|
||||
debug = 0
|
||||
|
|
|
@ -70,6 +70,9 @@ class PseudoFile:
|
|||
def writelines(self, l):
|
||||
map(self.write, l)
|
||||
|
||||
def flush(self):
|
||||
pass
|
||||
|
||||
|
||||
class ScriptBinding:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue