# HG changeset patch # User Gregory Szorc # Date 2018-02-11 22:30:44 # Node ID 488e313954eaccaefb1c24bb4332258453ab8e18 # Parent 194463554ba5430e88a35e066eafb76aa51dae99 py3: check for bytes instead of str in hg.share() Differential Revision: https://phab.mercurial-scm.org/D2151 diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -214,7 +214,7 @@ def share(ui, source, dest=None, update= else: dest = ui.expandpath(dest) - if isinstance(source, str): + if isinstance(source, bytes): origsource = ui.expandpath(source) source, branches = parseurl(origsource) srcrepo = repository(ui, source)