From ea096115cd40c713d9c3e406ba16ea55f6597439 Mon Sep 17 00:00:00 2001 From: Bob Farrell Date: Mon, 16 Jun 2008 23:28:48 +0100 Subject: [PATCH] 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. --- bpython.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bpython.py b/bpython.py index e66374b..28ccf6b 100644 --- a/bpython.py +++ b/bpython.py @@ -780,6 +780,10 @@ class Repl( object ): to do it.""" pass + def close( self ): + """See the flush() method docstring.""" + pass + def echo( self, s, redraw=True ): """Parse and echo a formatted string with appropriate attributes. It uses the formatting method as defined in formatter.py to parse the srings. It won't update