Skip to content
  • Matt Harbison's avatar
    hglib: move conversion of Exception to str to a utility function · d7e8bbb3e7fc
    Matt Harbison authored
    The `hglib.tounicode(str(..))` idiom is redundant on py3, but also that converts
    Mercurial exceptions from bytes to str via `pycompat.sysstr()`, which would
    mangle paths, and displays the `b''` prefix.  There's also some redundant open
    coding of exception formatting in various places.
    
    This doesn't resolve any of that (other than to drop the redundant
    `hglib.tounicode`), and simply rolls up all exception related cases using this
    pattern as a first step.
    d7e8bbb3e7fc