Skip to content

Commit

Permalink
Python 3.10 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri-Sintsov committed May 29, 2022
1 parent 1bd7122 commit abecfb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion django_deno/importmap.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from collections import MutableMapping
from collections.abc import MutableMapping
import os

from pathlib import Path
Expand Down
4 changes: 2 additions & 2 deletions django_deno/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import collections
from collections.abc import Iterable
import traceback


Expand All @@ -11,7 +11,7 @@ def ex_to_str(ex):
def unfold(iterable, max_level=None, curr_level=1):
ret = []
for element in iterable:
if isinstance(element, collections.Iterable) and (max_level is None or curr_level < max_level):
if isinstance(element, Iterable) and (max_level is None or curr_level < max_level):
ret.append(unfold(element, max_level=max_level, curr_level=curr_level + 1))
else:
ret.append(element)
Expand Down

0 comments on commit abecfb5

Please sign in to comment.