# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1522927496 -19800 # Node ID 1ccd75027abbc9487acaf2ccbc9a1acbef194bb1 # Parent 1d26f745a10b09ae800ab6005aaadde5019753f9 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 diff -r 1d26f745a10b -r 1ccd75027abb 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