diff hgext/narrow/narrowwirepeer.py @ 40212:885d5cf9b6a4

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
author Pulkit Goyal <pulkit@yandex-team.ru>
date Sat, 13 Oct 2018 00:35:37 +0300
parents 74558635dad5
children 2c5835b4246b
line wrap: on
line diff
--- 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)