-
-
Notifications
You must be signed in to change notification settings - Fork 252
Closed
Labels
Description
Although this attribute is document as not supported on all file objects mercurial.ui.ui objects which is the default object class for user wanrings and promts invokes sys.stderr.closed().
Under bpython sys.stderr is a bpython.cli.Repl object which does no have this method attribute.
eg.
#!python
>>> import mercurial.ui
>>> ui = mercurial.ui.ui()
>>> ui.warn("foo")
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/usr/lib/pymodules/python2.5/mercurial/ui.py", line 313, in warn
self.write_err(*msg)
File "/usr/lib/pymodules/python2.5/mercurial/ui.py", line 234, in write_err
if not sys.stdout.closed: sys.stdout.flush()
AttributeError: 'Repl' object has no attribute 'closed'
- Bitbucket: https://bitbucket.org/bobf/bpython/issue/87
- Originally Reported By: Roger Gammans
- Originally Created At: 2010-01-01T22:21:56.062
Reactions are currently unavailable