Show More
@@ -44,6 +44,7 b' from mercurial.i18n import _' | |||||
44 | from mercurial.node import hex |
|
44 | from mercurial.node import hex | |
45 |
|
45 | |||
46 | from mercurial import ( |
|
46 | from mercurial import ( | |
|
47 | encoding, | |||
47 | registrar, |
|
48 | registrar, | |
48 | ui as uimod, |
|
49 | ui as uimod, | |
49 | util, |
|
50 | util, | |
@@ -182,7 +183,7 b' def wrapui(ui):' | |||||
182 | fp.write(fmt % args) |
|
183 | fp.write(fmt % args) | |
183 | except (IOError, OSError) as err: |
|
184 | except (IOError, OSError) as err: | |
184 | self.debug('warning: cannot write to blackbox.log: %s\n' % |
|
185 | self.debug('warning: cannot write to blackbox.log: %s\n' % | |
185 | err.strerror) |
|
186 | encoding.strtolocal(err.strerror)) | |
186 | # do not restore _bbinlog intentionally to avoid failed |
|
187 | # do not restore _bbinlog intentionally to avoid failed | |
187 | # logging again |
|
188 | # logging again | |
188 | else: |
|
189 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now