[PATCH 4 of 4 py3] minirst: use bytes.strip instead of str.strip
Pulkit Goyal
7895pulkit at gmail.com
Sun Mar 12 13:19:51 EDT 2017
# HG changeset patch
# User Pulkit Goyal <7895pulkit at gmail.com>
# Date 1489339017 -19800
# Sun Mar 12 22:46:57 2017 +0530
# Node ID a780f27bd455458749eff3e757daa4e39eb719ad
# Parent 6cccbcf562c29d073d9cdf775fb07e40e32fad0b
minirst: use bytes.strip instead of str.strip
bytes.strip exists in Python 2.6 and Python 2.7 also.
diff -r 6cccbcf562c2 -r a780f27bd455 mercurial/minirst.py
--- a/mercurial/minirst.py Sun Mar 12 22:33:43 2017 +0530
+++ b/mercurial/minirst.py Sun Mar 12 22:46:57 2017 +0530
@@ -549,7 +549,7 @@
elif block['type'] == 'option':
return formatoption(block, width)
- text = ' '.join(map(str.strip, block['lines']))
+ text = ' '.join(map(bytes.strip, block['lines']))
return util.wrap(text, width=width,
initindent=indent,
hangindent=subindent) + '\n'
More information about the Mercurial-devel
mailing list