mercurial/hg.py
changeset 32988 11c0bb4ccc76
parent 32528 a25cc3ca874f
child 33034 071732d9c210
--- a/mercurial/hg.py	Tue Jun 20 22:11:46 2017 +0530
+++ b/mercurial/hg.py	Tue Jun 20 23:46:18 2017 +0530
@@ -477,7 +477,7 @@
     remote's path/URL. Defaults to "identity."
     """
 
-    if isinstance(source, str):
+    if isinstance(source, bytes):
         origsource = ui.expandpath(source)
         source, branch = parseurl(origsource, branch)
         srcpeer = peer(ui, peeropts, source)