Skip to content

Commit 7910094

Browse files
author
Bob Farrell
committed
close() also implemented for same hacky fix as flush()
The logging module tries to call both these methods, so I'm sure other modules do as well. committer: Bob Farrell <bob@keys.(none)>
1 parent 0528343 commit 7910094

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎bpython.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,10 @@ def flush( self ):
780780
to do it."""
781781
pass
782782

783+
def close( self ):
784+
"""See the flush() method docstring."""
785+
pass
786+
783787
def echo( self, s, redraw=True ):
784788
"""Parse and echo a formatted string with appropriate attributes. It uses the
785789
formatting method as defined in formatter.py to parse the srings. It won't update

0 commit comments

Comments
 (0)