# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1498081811 -19800 # Node ID 071732d9c210c911924fccdb30daf55185942265 # Parent c31d456233046581c04485a2a71b7ffe628f537c py3: check for bytes instead of str in isinstance diff -r c31d45623304 -r 071732d9c210 mercurial/hg.py --- a/mercurial/hg.py Thu Jun 22 03:16:16 2017 +0530 +++ b/mercurial/hg.py Thu Jun 22 03:20:11 2017 +0530 @@ -130,7 +130,7 @@ 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: