Brodie Rao committed 191f825

Fixed AttributeError due to encoding/encodingmode being moved to a new module

  • Participants
  • Parent commits 026b824
  • Branches encoding

Comments (0)

Files changed (1)

 import sys
 import unicodedata
-from mercurial import dispatch, extensions, util
+from mercurial import dispatch, encoding, extensions, util
 def _ioctl_dimensions(fd):
     from fcntl import ioctl
             # Try to determine the width of the string as it would appear in
             # the terminal.
-                s = s.decode(util._encoding, util._encodingmode)
+                s = s.decode(encoding.encoding, encoding.encodingmode)
                 s = unicodedata.normalize('NFC', s)
             except UnicodeError: