py3: add some r'' prefixes in hgext/narrow/narrowwirepeer.py
authorPulkit Goyal <pulkit@yandex-team.ru>
Sat, 13 Oct 2018 00:35:37 +0300
changeset 40212 885d5cf9b6a4
parent 40211 d216ae4cc3f6
child 40213 83912321bf09
py3: add some r'' prefixes in hgext/narrow/narrowwirepeer.py This fixes test-narrow-widen-no-ellipsis.t on Python 3. # skip-blame because just r'' prefixes Differential Revision: https://phab.mercurial-scm.org/D5023
hgext/narrow/narrowwirepeer.py
--- a/hgext/narrow/narrowwirepeer.py	Fri Oct 12 19:49:02 2018 +0200
+++ b/hgext/narrow/narrowwirepeer.py	Sat Oct 13 00:35:37 2018 +0300
@@ -100,10 +100,10 @@
                                     prefer_uncompressed=preferuncompressed)
 
 def peernarrowwiden(remote, **kwargs):
-    for ch in ('oldincludes', 'newincludes', 'oldexcludes', 'newexcludes',
-               'commonheads', 'known'):
+    for ch in (r'oldincludes', r'newincludes', r'oldexcludes', r'newexcludes',
+               r'commonheads', r'known'):
         kwargs[ch] = wireprototypes.encodelist(kwargs[ch])
 
-    kwargs['ellipses'] = '%i' % bool(kwargs['ellipses'])
+    kwargs[r'ellipses'] = '%i' % bool(kwargs[r'ellipses'])
     f = remote._callcompressable('narrow_widen', **kwargs)
     return bundle2.getunbundler(remote.ui, f)