Mercurial > hg
diff mercurial/util.py @ 25210:b58dde1bb32f
MBTextWrapper: drop dedicated __init__ method
It was only there as a compatibility layer with a version of Python which we do
support anymore.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 18 May 2015 16:56:04 -0500 |
parents | 277a535c0b3a |
children | 22f4ce49044d |
line wrap: on
line diff
--- a/mercurial/util.py Mon May 18 16:54:21 2015 -0500 +++ b/mercurial/util.py Mon May 18 16:56:04 2015 -0500 @@ -1554,13 +1554,6 @@ This requires use decision to determine width of such characters. """ - def __init__(self, **kwargs): - textwrap.TextWrapper.__init__(self, **kwargs) - - # for compatibility between 2.4 and 2.6 - if getattr(self, 'drop_whitespace', None) is None: - self.drop_whitespace = kwargs.get('drop_whitespace', True) - def _cutdown(self, ucstr, space_left): l = 0 colwidth = encoding.ucolwidth