diff mercurial/hg.py @ 33034:071732d9c210

py3: check for bytes instead of str in isinstance
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 22 Jun 2017 03:20:11 +0530
parents 11c0bb4ccc76
children 6294654453ee
line wrap: on
line diff
--- 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: