Commit 2373a502 authored by Jason Madden's avatar Jason Madden

Pin dnspython < 2 for now; fully fixing it is going to be a bit involved.

parent 187a41c2
Fix compatibility with dnspython 2. Fix compatibility with dnspython 2.
.. caution:: This currently means that it can be imported. But it
cannot yet be used. gevent has a pinned dependency on
dnspython < 2 for now.
...@@ -291,7 +291,7 @@ del _to_cythonize ...@@ -291,7 +291,7 @@ del _to_cythonize
## Extras ## Extras
EXTRA_DNSPYTHON = [ EXTRA_DNSPYTHON = [
'dnspython >= 1.16.0', 'dnspython >= 1.16.0, < 2.0',
'idna', 'idna',
] ]
EXTRA_EVENTS = [ EXTRA_EVENTS = [
......
...@@ -112,7 +112,7 @@ def _patch_dns(): ...@@ -112,7 +112,7 @@ def _patch_dns():
def extra_all(mod_name): def extra_all(mod_name):
return extras.get(mod_name, ()) return extras.get(mod_name, ())
def after_import_hook(dns): def after_import_hook(dns): # pylint;disable=redefined-outer-name
# Runs while still in the original patching scope. # Runs while still in the original patching scope.
# The dns.rdata:get_rdata_class() function tries to # The dns.rdata:get_rdata_class() function tries to
# dynamically import modules using __import__ and then walk # dynamically import modules using __import__ and then walk
...@@ -150,7 +150,6 @@ def _patch_dns(): ...@@ -150,7 +150,6 @@ def _patch_dns():
top.rdata.__import__ = _no_dynamic_imports top.rdata.__import__ = _no_dynamic_imports
return top return top
dns = _patch_dns() dns = _patch_dns()
......
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