mirror of
https://github.com/python/cpython.git
synced 2025-09-17 14:16:02 +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):
|
def writelines(self, l):
|
||||||
map(self.write, l)
|
map(self.write, l)
|
||||||
|
|
||||||
|
def flush(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
debug = 0
|
debug = 0
|
||||||
|
|
|
@ -70,6 +70,9 @@ class PseudoFile:
|
||||||
def writelines(self, l):
|
def writelines(self, l):
|
||||||
map(self.write, l)
|
map(self.write, l)
|
||||||
|
|
||||||
|
def flush(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ScriptBinding:
|
class ScriptBinding:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue