Patchwork D3127: py3: return bytes from util.removeauth()

login
register
mail settings
Submitter phabricator
Date April 5, 2018, 1:48 p.m.
Message ID <a47c320d3f3733a2be6e4f4856a95ccc@localhost.localdomain>
Download mbox | patch
Permalink /patch/30374/
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 rHGb23e3cc1afd4: py3: return bytes from util.removeauth() (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3127?vs=7710&id=7725

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

AFFECTED FILES
  mercurial/util.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -2864,7 +2864,7 @@ 
     '''remove all authentication information from a url string'''
     u = url(u)
     u.user = u.passwd = None
-    return str(u)
+    return bytes(u)
 
 timecount = unitcountfn(
     (1, 1e3, _('%.0f s')),