changeset 39406:b3572f733dbd

py3: add r'' prefix to prevent b'' being prepended The keys of keyword arguments should be str. # skip-blame because we are adding just r'' prefixes. Differential Revision: https://phab.mercurial-scm.org/D4449
author Pulkit Goyal <pulkit@yandex-team.ru>
date Mon, 03 Sep 2018 13:52:49 +0300
parents cb70501d8b71
children aa95fd0257df
files hgext/fastannotate/commands.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/fastannotate/commands.py	Fri Aug 31 23:28:09 2018 +0530
+++ b/hgext/fastannotate/commands.py	Mon Sep 03 13:52:49 2018 +0300
@@ -70,7 +70,7 @@
             yield p
 
 fastannotatecommandargs = {
-    'options': [
+    r'options': [
         ('r', 'rev', '.', _('annotate the specified revision'), _('REV')),
         ('u', 'user', None, _('list the author (long with -v)')),
         ('f', 'file', None, _('list the filename')),
@@ -88,8 +88,8 @@
         ('', 'rebuild', None, _('rebuild cache even if it exists '
                                 '(EXPERIMENTAL)')),
     ] + commands.diffwsopts + commands.walkopts + commands.formatteropts,
-    'synopsis': _('[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...'),
-    'inferrepo': True,
+    r'synopsis': _('[-r REV] [-f] [-a] [-u] [-d] [-n] [-c] [-l] FILE...'),
+    r'inferrepo': True,
 }
 
 def fastannotate(ui, repo, *pats, **opts):
@@ -197,7 +197,7 @@
 
 _newopts = set([])
 _knownopts = set([opt[1].replace('-', '_') for opt in
-                  (fastannotatecommandargs['options'] + commands.globalopts)])
+                  (fastannotatecommandargs[r'options'] + commands.globalopts)])
 
 def _annotatewrapper(orig, ui, repo, *pats, **opts):
     """used by wrapdefault"""