Patchwork D6049: global: use raw strings for namedtuple()

login
register
mail settings
Submitter phabricator
Date March 3, 2019, 9:34 a.m.
Message ID <6bf0f7a643f089c463d823d357035a3b@localhost.localdomain>
Download mbox | patch
Permalink /patch/39018/
State Not Applicable
Headers show

Comments

phabricator - March 3, 2019, 9:34 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7f63ec6969f3: global: use raw strings for namedtuple() (authored by indygreg, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6049?vs=14298&id=14314

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

AFFECTED FILES
  hgext/journal.py
  mercurial/util.py

CHANGE DETAILS




To: indygreg, #hg-reviewers
Cc: mjpieters, mercurial-devel

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -3211,9 +3211,9 @@ 
 SERVERROLE = 'server'
 CLIENTROLE = 'client'
 
-compewireprotosupport = collections.namedtuple(u'compenginewireprotosupport',
-                                               (u'name', u'serverpriority',
-                                                u'clientpriority'))
+compewireprotosupport = collections.namedtuple(r'compenginewireprotosupport',
+                                               (r'name', r'serverpriority',
+                                                r'clientpriority'))
 
 class compressormanager(object):
     """Holds registrations of various compression engines.
diff --git a/hgext/journal.py b/hgext/journal.py
--- a/hgext/journal.py
+++ b/hgext/journal.py
@@ -194,8 +194,8 @@ 
     return orig(ui, repo, repopath)
 
 class journalentry(collections.namedtuple(
-        u'journalentry',
-        u'timestamp user command namespace name oldhashes newhashes')):
+        r'journalentry',
+        r'timestamp user command namespace name oldhashes newhashes')):
     """Individual journal entry
 
     * timestamp: a mercurial (time, timezone) tuple