Mercurial > hg
diff hgext/largefiles/overrides.py @ 32157:09fb3d3b1b3a
py3: abuse r'' to access keys in keyword arguments
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Wed, 03 May 2017 15:41:28 +0530 |
parents | 9e67ce5c4fd0 |
children | 8a87bfc5bebb |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Wed May 03 15:37:51 2017 +0530 +++ b/hgext/largefiles/overrides.py Wed May 03 15:41:28 2017 +0530 @@ -105,9 +105,9 @@ scmutil.matchandpats) def addlargefiles(ui, repo, isaddremove, matcher, **opts): - large = opts.get('large') + large = opts.get(r'large') lfsize = lfutil.getminsize( - ui, lfutil.islfilesrepo(repo), opts.get('lfsize')) + ui, lfutil.islfilesrepo(repo), opts.get(r'lfsize')) lfmatcher = None if lfutil.islfilesrepo(repo): @@ -258,7 +258,7 @@ def cmdutiladd(orig, ui, repo, matcher, prefix, explicitonly, **opts): # The --normal flag short circuits this override - if opts.get('normal'): + if opts.get(r'normal'): return orig(ui, repo, matcher, prefix, explicitonly, **opts) ladded, lbad = addlargefiles(ui, repo, False, matcher, **opts)