Patchwork D3126: py3: use bytes instead of str in instance()

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 1:48 p.m.
Message ID <2875698468e80fa4711fdea777c4b0b1@localhost.localdomain>
Download mbox | patch
Permalink /patch/30368/
State Not Applicable
Headers show

Comments

phabricator - April 5, 2018, 1:48 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG1ccd75027abb: py3: use bytes instead of str in instance() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3126?vs=7709&id=7724

REVISION DETAIL
  https://phab.mercurial-scm.org/D3126

AFFECTED FILES
  mercurial/logexchange.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/logexchange.py b/mercurial/logexchange.py
--- a/mercurial/logexchange.py
+++ b/mercurial/logexchange.py
@@ -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