cleanup: remove pointless r-prefixes on double-quoted strings
This is only double-quoted strings. I'll do single-quoted strings as a second step. These had existed because our source transformer didn't turn r"" into b"", so we had tagged some strings as r-strings to get "native" strings on both Pythons. Now that the transformer is gone, we can dispense with this nonsense. Methodology: I ran hg locate 'set:added() or modified() or clean()' | egrep '.*\.py$' | xargs egrep --color=never -n -- \[\^a-z\]r\"\[\^\"\\\\\]\*\"\[\^\"\] in an emacs grep-mode buffer, and then used a keyboard macro to iterate over the results and remove the r prefix as needed. # skip-blame removing unneeded r prefixes left over from Python 3 migration. Differential Revision: https://phab.mercurial-scm.org/D7305
Showing
- contrib/check-code.py 3 additions, 3 deletionscontrib/check-code.py
- contrib/perf.py 1 addition, 1 deletioncontrib/perf.py
- doc/gendoc.py 1 addition, 1 deletiondoc/gendoc.py
- hgdemandimport/demandimportpy2.py 3 additions, 3 deletionshgdemandimport/demandimportpy2.py
- hgext/convert/common.py 1 addition, 1 deletionhgext/convert/common.py
- hgext/convert/cvsps.py 2 additions, 4 deletionshgext/convert/cvsps.py
- hgext/githelp.py 1 addition, 1 deletionhgext/githelp.py
- hgext/lfs/wireprotolfsserver.py 3 additions, 3 deletionshgext/lfs/wireprotolfsserver.py
- hgext/narrow/narrowwirepeer.py 2 additions, 2 deletionshgext/narrow/narrowwirepeer.py
- hgext/record.py 1 addition, 1 deletionhgext/record.py
- hgext/remotefilelog/shallowutil.py 2 additions, 2 deletionshgext/remotefilelog/shallowutil.py
- hgext/zeroconf/__init__.py 3 additions, 3 deletionshgext/zeroconf/__init__.py
- mercurial/changegroup.py 1 addition, 1 deletionmercurial/changegroup.py
- mercurial/context.py 2 additions, 2 deletionsmercurial/context.py
- mercurial/debugcommands.py 2 additions, 2 deletionsmercurial/debugcommands.py
- mercurial/dirstate.py 9 additions, 9 deletionsmercurial/dirstate.py
- mercurial/encoding.py 3 additions, 3 deletionsmercurial/encoding.py
- mercurial/extensions.py 1 addition, 3 deletionsmercurial/extensions.py
- mercurial/filemerge.py 2 additions, 2 deletionsmercurial/filemerge.py
- mercurial/hgweb/server.py 6 additions, 6 deletionsmercurial/hgweb/server.py
Loading
Please register or sign in to comment