changeset 33018: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 c31d45623304
children daccadd75760
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: