# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2017-06-21 21:50:11 # Node ID 071732d9c210c911924fccdb30daf55185942265 # Parent c31d456233046581c04485a2a71b7ffe628f537c py3: check for bytes instead of str in isinstance diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -130,7 +130,7 @@ def _peerlookup(path): def islocal(repo): '''return true if repo (or path pointing to repo) is local''' - if isinstance(repo, str): + if isinstance(repo, bytes): try: return _peerlookup(repo).islocal(repo) except AttributeError: