Commit 5cfce47d authored by Jason R. Coombs's avatar Jason R. Coombs

Use super to resolve the superclass, but fall back to direct access on Python...

Use super to resolve the superclass, but fall back to direct access on Python 2 where old style classes are used. Ref #843.
parent 7924b1ff
......@@ -143,7 +143,10 @@ class sdist(sdist_add_defaults, orig.sdist):
def _add_defaults_data_files(self):
try:
sdist_add_defaults._add_defaults_data_files(self)
if six.PY2:
sdist_add_defaults._add_defaults_data_files(self)
else:
super()._add_defaults_data_files()
except TypeError:
log.warn("data_files contains unexpected objects")
......
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