Closed tirkarthi closed 2 years ago
Does this work instead?
import collections.defaultdict
import collections.Iterable
The project also supports Python 2. So something like below would be better compatible.
try:
# For Python 3.3+
from collections.abc import Iterable
except ImportError:
# For Python 2
from collections import Iterable
OK, thanks. Could you file this patch as a pull request?
Thanks, raised https://github.com/lorien/test_server/pull/24.
ping
Fixed.
https://bugzilla.redhat.com/show_bug.cgi?id=1793021
https://github.com/lorien/test_server/blob/e46b5f4c0b38b9c98d90625407c91855f725ed5a/test_server/server.py#L9
Thanks for the library!