changeset 33585:d90f9e4704de stable

ui: fix configbytes isinstance check to look for bytes and not str Fixes configbytes on Python 3.
author Augie Fackler <augie@google.com>
date Mon, 24 Jul 2017 13:50:25 -0400
parents ea8c2478c907
children b7304e1cc914
files mercurial/ui.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/ui.py	Mon Jul 24 14:42:55 2017 -0400
+++ b/mercurial/ui.py	Mon Jul 24 13:50:25 2017 -0400
@@ -648,7 +648,7 @@
             if default is _unset:
                 default = 0
             value = default
-        if not isinstance(value, str):
+        if not isinstance(value, bytes):
             return value
         try:
             return util.sizetoint(value)