changeset 37365:1ccd75027abb

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
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 05 Apr 2018 16:54:56 +0530
parents 1d26f745a10b
children b23e3cc1afd4
files mercurial/logexchange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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