Patchwork D5863: py3: add some b'' prefixes in hgext/convert/monotone.py

login
register
mail settings
Submitter phabricator
Date Feb. 5, 2019, 10:45 p.m.
Message ID <95b90913cbffa8c8cde967aa67baaa4f@localhost.localdomain>
Download mbox | patch
Permalink /patch/38457/
State Not Applicable
Headers show

Comments

phabricator - Feb. 5, 2019, 10:45 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG83d62df28ab6: py3: add some b&#039;&#039; prefixes in hgext/convert/monotone.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5863?vs=13830&id=13834

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

AFFECTED FILES
  hgext/convert/monotone.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/convert/monotone.py b/hgext/convert/monotone.py
--- a/hgext/convert/monotone.py
+++ b/hgext/convert/monotone.py
@@ -219,8 +219,8 @@ 
             m = self.cert_re.match(e)
             if m:
                 name, value = m.groups()
-                value = value.replace(r'\"', '"')
-                value = value.replace(r'\\', '\\')
+                value = value.replace(br'\"', '"')
+                value = value.replace(br'\\', '\\')
                 certs[name] = value
         # Monotone may have subsecond dates: 2005-02-05T09:39:12.364306
         # and all times are stored in UTC