py3dns uses 'async' keyword that cannot be used as a attibute name in python 3.7+
Bug #1776027 reported by
Kevin Fenzi
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
py3dns |
Fix Released
|
High
|
Scott Kitterman |
Bug Description
Downstream report:
https:/
With python 3.7, await and async are resevered keywords and cannot be used as attribute names.
Trying to build py3dns with python 3.7 or newer results in:
+ /usr/bin/python3 setup.py build
Traceback (most recent call last):
File "setup.py", line 7, in <module>
import DNS
File "/builddir/
from .Base import DnsRequest
File "/builddir/
self.async=None
^
SyntaxError: invalid syntax
Should be easy enough to just rename the attribute... attached patch changes it to 'py3async'.
Changed in py3dns: | |
assignee: | nobody → Scott Kitterman (kitterman) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in py3dns: | |
milestone: | none → 3.1.2 |
Changed in py3dns: | |
milestone: | none → 3.2.0 |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Hello,
I confirm the bug. I solved it with the same patch, basically (using self.asynchronous instead of py3async).
Is it possible to merge this patch / deploy to pip ?
Best Regards,
Remi