From d33fcf6cc7380633329fdaf2e7f7543bbdd2490e Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Thu, 17 Jul 2014 11:49:24 -0700 Subject: Use a metaclass instead of @add_slots --- attoconf/lib/install.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'attoconf/lib/install.py') diff --git a/attoconf/lib/install.py b/attoconf/lib/install.py index f43b2a1..3dc7f5b 100644 --- a/attoconf/lib/install.py +++ b/attoconf/lib/install.py @@ -1,4 +1,4 @@ -# Copyright 2013 Ben Longbons +# Copyright 2013-2014 Ben Longbons # # This file is part of attoconf. # @@ -141,11 +141,7 @@ def psdir(build, DIR): class Install(ClassyProject): __slots__ = () - - @classmethod - def slots(cls): - return super(Install, cls).slots() + ( - 'package', 'package_name') + _merge_slots_ = ('package', 'package_name') # Compatibility with configure written for attoconf < 0.7 # In attoconf 1.0, the positional srcdir argument will go away, -- cgit v1.2.3-70-g09d2