Don't update from attributes starting with __

This commit is contained in:
Pedro Algarvio 2014-11-08 00:44:40 +00:00 committed by Thomas S Hatch
parent 0f1779eceb
commit 56f68a1639

View file

@ -564,6 +564,8 @@ class SaltDistribution(distutils.dist.Distribution):
def update_metadata(self):
for attrname in dir(self):
if attrname.startswith('__'):
continue
attrvalue = getattr(self, attrname, None)
if attrvalue == 0:
continue