Mercurial > hg
changeset 29416:30789efb1e5e
mdiff: remove use of __slots__
The use of __slots__ was added way back in 2006 in 4ec58b157265.
__slots__ isn't necessary for this class.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 25 Jun 2016 13:52:46 -0700 |
parents | 47fb4beb992b |
children | 526b027b0130 |
files | mercurial/mdiff.py |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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]