Commit e621ce6f authored by Jason R. Coombs's avatar Jason R. Coombs

Fix TypeError when no attrs were passed

parent ebff930a
......@@ -254,7 +254,8 @@ class Distribution(_Distribution):
have_package_data = hasattr(self, "package_data")
if not have_package_data:
self.package_data = {}
if 'features' in attrs or 'require_features' in attrs:
_attrs_dict = attrs or {}
if 'features' in _attrs_dict or 'require_features' in _attrs_dict:
Feature.warn_deprecated()
self.require_features = []
self.features = {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment