# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 1526734476 -19800 # Node ID c560a4ea6dac788c60a7731e512dd5ac1678fab7 # Parent a40041caf8afd0f61333ea48dd923b95894af915 py3: add b'' prefixes in hgext/convert/subversion.py Litrerals starting with triple quotes or prepended with r'' do not get prepended by b'' by the transformer. # skip-blame because just adding b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D3592 diff -r a40041caf8af -r c560a4ea6dac hgext/convert/subversion.py --- a/hgext/convert/subversion.py Sat May 19 18:23:03 2018 +0530 +++ b/hgext/convert/subversion.py Sat May 19 18:24:36 2018 +0530 @@ -1081,7 +1081,7 @@ ' hg executable is in PATH')) return logstream(stdout) -pre_revprop_change = '''#!/bin/sh +pre_revprop_change = b'''#!/bin/sh REPOS="$1" REV="$2" @@ -1098,8 +1098,8 @@ ''' class svn_sink(converter_sink, commandline): - commit_re = re.compile(r'Committed revision (\d+).', re.M) - uuid_re = re.compile(r'Repository UUID:\s*(\S+)', re.M) + commit_re = re.compile(br'Committed revision (\d+).', re.M) + uuid_re = re.compile(br'Repository UUID:\s*(\S+)', re.M) def prerun(self): if self.wc: