py3: use bytes instead of str in instance()
authorPulkit Goyal <7895pulkit@gmail.com>
Thu, 05 Apr 2018 16:54:56 +0530
changeset 37365 1ccd75027abb
parent 37364 1d26f745a10b
child 37366 b23e3cc1afd4
py3: use bytes instead of str in instance() We deal internally with bytes, so we should check whether the remote is a bytes or not. Differential Revision: https://phab.mercurial-scm.org/D3126
mercurial/logexchange.py
--- a/mercurial/logexchange.py	Thu Apr 05 16:46:34 2018 +0530
+++ b/mercurial/logexchange.py	Thu Apr 05 16:54:56 2018 +0530
@@ -106,7 +106,7 @@
     rpath = remote
     if local:
         rpath = remote._repo.root
-    elif not isinstance(remote, str):
+    elif not isinstance(remote, bytes):
         rpath = remote._url
 
     # represent the remotepath with user defined path name if exists