Skip to content

Commit

Permalink
fix import Callable for Python3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsubara committed Jul 14, 2022
1 parent 6cf59c5 commit 1f28f7d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion django_xmlrpc/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,12 @@
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""
from collections import Callable
import sys

if sys.version_info[0:2] >= (3, 10):
from collections.abc import Callable
else:
from collections import Callable
from logging import getLogger

from django.apps import apps
Expand Down

0 comments on commit 1f28f7d

Please sign in to comment.