X Tutup
Skip to content

Commit 920a9c4

Browse files
committed
Add a closed attribute to Repl to fix mercurial.ui.ui expecting stderr to have this attribute. This closes issue #87.
1 parent df691c7 commit 920a9c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bpython/repl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ def __init__(self, interp, config):
307307
# to repl.pastebin
308308
self.prev_pastebin_content = ''
309309
self.prev_pastebin_url = ''
310+
# Necessary to fix mercurial.ui.ui expecting sys.stderr to have this
311+
# attribute
312+
self.closed = False
310313

311314
pythonhist = os.path.expanduser(self.config.hist_file)
312315
if os.path.exists(pythonhist):

0 commit comments

Comments
 (0)
X Tutup