# HG changeset patch
# User Pulkit Goyal <7895pulkit@gmail.com>
# Date 2017-03-12 17:16:57
# Node ID ff25b89a0776e8045334726d2ffde7f4005f0a46
# Parent  7c09b071318a959c942de534cea5c6114ea954d8

minirst: use bytes.strip instead of str.strip

bytes.strip exists in Python 2.6 and Python 2.7 also.

diff --git a/mercurial/minirst.py b/mercurial/minirst.py
--- a/mercurial/minirst.py
+++ b/mercurial/minirst.py
@@ -549,7 +549,7 @@ def formatblock(block, width):
     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'