Submitter | Augie Fackler |
---|---|
Date | March 12, 2017, 7:49 p.m. |
Message ID | <84996257b560fa41535e.1489348196@augie-macbookair2.roam.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/19223/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -2651,6 +2651,11 @@ class url(object): >>> print url(r'file:///D:\data\hg') file:///D:\data\hg """ + if pycompat.ispy3: + return encoding.fromlocal(self.__bytes__()).decode('utf-8') + return self.__bytes__() + + def __bytes__(self): if self._localpath: s = self.path if self.scheme == 'bundle':