mdiff: remove use of __slots__
authorGregory Szorc <gregory.szorc@gmail.com>
Sat, 25 Jun 2016 13:52:46 -0700
changeset 29416 30789efb1e5e
parent 29415 47fb4beb992b
child 29417 526b027b0130
mdiff: remove use of __slots__ The use of __slots__ was added way back in 2006 in 4ec58b157265. __slots__ isn't necessary for this class.
mercurial/mdiff.py
--- a/mercurial/mdiff.py	Sat Jun 25 17:40:53 2016 -0700
+++ b/mercurial/mdiff.py	Sat Jun 25 13:52:46 2016 -0700
@@ -58,10 +58,8 @@
         'upgrade': False,
         }
 
-    __slots__ = defaults.keys()
-
     def __init__(self, **opts):
-        for k in self.__slots__:
+        for k in self.defaults.keys():
             v = opts.get(k)
             if v is None:
                 v = self.defaults[k]