# HG changeset patch # User Augie Fackler # Date 2017-07-24 17:50:25 # Node ID d90f9e4704def05441e1641376d69d760d5b9038 # Parent ea8c2478c907d91237d7875a3b69e10ac518b68d ui: fix configbytes isinstance check to look for bytes and not str Fixes configbytes on Python 3. diff --git a/mercurial/ui.py b/mercurial/ui.py --- a/mercurial/ui.py +++ b/mercurial/ui.py @@ -648,7 +648,7 @@ class ui(object): 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)