File tree Expand file tree Collapse file tree
flanker/addresslib/drivers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import collections
21import dnsq
2+ import sys
3+ if sys .version_info .major == 3 and sys .version_info .minor >= 10 :
4+ from collections .abc import MutableMapping
5+ else :
6+ from collections import MutableMapping
37
48
5- class DNSLookup (collections . MutableMapping ):
9+ class DNSLookup (MutableMapping ):
610 """
711 DNSLookup has the same interface as a dict, but talks to a DNS server
812 """
Original file line number Diff line number Diff line change 1- import collections
21import os
32import redis
3+ import sys
44
5+ if sys .version_info .major == 3 and sys .version_info .minor >= 10 :
6+ from collections .abc import MutableMapping
7+ else :
8+ from collections import MutableMapping
59
6- class RedisCache (collections . MutableMapping ):
10+ class RedisCache (MutableMapping ):
711 """
812 RedisCache has the same interface as a dict, but talks to a redis server.
913 """
You can’t perform that action at this time.
0 commit comments