py3: check for bytes instead of str in isinstance
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 22 Jun 2017 03:20:11 +0530
changeset 33018 071732d9c210
parent 33017 c31d45623304
child 33019 daccadd75760
py3: check for bytes instead of str in isinstance
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: