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/make.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'attoconf/lib/make.py') diff --git a/attoconf/lib/make.py b/attoconf/lib/make.py index b965f28..f815cd0 100644 --- a/attoconf/lib/make.py +++ b/attoconf/lib/make.py @@ -1,4 +1,4 @@ -# Copyright 2013 Ben Longbons +# Copyright 2013-2014 Ben Longbons # # This file is part of attoconf. # @@ -62,9 +62,7 @@ class Make(ClassyProject): ''' Post hook to generate a Makefile from Makefile.in ''' __slots__ = () - @classmethod - def slots(cls): - return super(Make, cls).slots() + ('make_in', 'make_out') + _merge_slots_ = ('make_in', 'make_out') # compatibility with attoconf < 0.7 def __init__(self, srcdir, -- cgit v1.2.3-60-g2f50