Mercurial > hg
changeset 31340:ff25b89a0776
minirst: use bytes.strip instead of str.strip
bytes.strip exists in Python 2.6 and Python 2.7 also.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 12 Mar 2017 22:46:57 +0530 |
parents | 7c09b071318a |
children | 66f1c244b43a |
files | mercurial/minirst.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/minirst.py Sun Mar 12 22:27:53 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'