# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1526669519 -19800 # Node ID 88c2d0e639b1abe87cfba7ff1efe8094f5df11cb # Parent b403e87df069dbdb7470d9acc0a9a8e6a2b43555 py3: fix kwargs handling in qgurad in hgext/mq.py # skip-blame because just r'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3581 diff -r b403e87df069 -r 88c2d0e639b1 hgext/mq.py --- a/hgext/mq.py Sat May 19 00:19:56 2018 +0530 +++ b/hgext/mq.py Sat May 19 00:21:59 2018 +0530 @@ -2872,7 +2872,7 @@ patch = None args = list(args) if opts.get(r'list'): - if args or opts.get('none'): + if args or opts.get(r'none'): raise error.Abort(_('cannot mix -l/--list with options or ' 'arguments')) for i in xrange(len(q.series)): @@ -2886,7 +2886,7 @@ patch = args.pop(0) if patch is None: raise error.Abort(_('no patch to work with')) - if args or opts.get('none'): + if args or opts.get(r'none'): idx = q.findseries(patch) if idx is None: raise error.Abort(_('no patch named %s') % patch)