devel/py-z3c.autoinclude: Fix build with setuptools 58.0.0+

With hat:	python
This commit is contained in:
Po-Chuan Hsieh 2022-03-25 21:32:27 +08:00
parent 4b3e03711b
commit 17ffca1b5c
No known key found for this signature in database
GPG key ID: 9A4BD10F002DD04B

View file

@ -0,0 +1,11 @@
--- src/z3c/autoinclude/dependency.py.orig 2016-01-29 12:30:33 UTC
+++ src/z3c/autoinclude/dependency.py
@@ -24,7 +24,7 @@ class DependencyFinder(DistributionManager):
for dotted_name in dist_manager.dottedNames():
try:
module = resolve(dotted_name)
- except ImportError, exc:
+ except ImportError as exc:
logging.getLogger("z3c.autoinclude").warn(
"resolve(%r) raised import error: %s" % (dotted_name, exc))
continue