MBTextWrapper: drop dedicated __init__ method
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 18 May 2015 16:56:04 -0500
changeset 25210 b58dde1bb32f
parent 25209 277a535c0b3a
child 25211 22f4ce49044d
MBTextWrapper: drop dedicated __init__ method It was only there as a compatibility layer with a version of Python which we do support anymore.
mercurial/util.py
--- 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