# HG changeset patch # User Jeff Hammel # Date 1359338464 28800 # Node ID 017b75cd61d8d22531cf327ba6873bf922cecedd # Parent da69d58f960d4dcbd45fcafa64c65a02472917be dont hardcode adding in __init__; thats just stupid diff -r da69d58f960d -r 017b75cd61d8 paint/package.py --- a/paint/package.py Sun Jan 27 17:57:38 2013 -0800 +++ b/paint/package.py Sun Jan 27 18:01:04 2013 -0800 @@ -264,11 +264,19 @@ """ def __init__(self, *packages): + self.packages = [] for package in packages: - # if Package instance, add that, otherwise convert - pass + self.add(package) raise NotImplementedError + def add(self, package): + """ + add a package to the instance. + If Package instance, add that, otherwise convert + """ + + __iadd__ = add + def dependencies(self): """return dependecies for each package"""