Fixes for python 2.7

This commit is contained in:
Jonathan Kim 2021-07-16 17:10:59 +01:00
parent 595d5b5a9d
commit 36c2d757ce
4 changed files with 18 additions and 4 deletions

View File

@ -1,6 +1,10 @@
import re import re
from collections import OrderedDict from collections import OrderedDict
from collections.abc import Iterable try:
from collections.abc import Iterable
except ImportError:
from collections import Iterable
from functools import partial from functools import partial
from graphql_relay import connection_from_list from graphql_relay import connection_from_list

View File

@ -1,6 +1,10 @@
import inspect import inspect
from collections import OrderedDict from collections import OrderedDict
from collections.abc import Mapping try:
from collections.abc import Mapping
except ImportError:
from collections import Mapping
from functools import partial from functools import partial
from .argument import Argument, to_arguments from .argument import Argument, to_arguments

View File

@ -1,5 +1,8 @@
import json import json
from collections.abc import Mapping try:
from collections.abc import Mapping
except ImportError:
from collections import Mapping
def to_key(value): def to_key(value):

View File

@ -1,5 +1,8 @@
from collections import OrderedDict from collections import OrderedDict
from collections.abc import Mapping try:
from collections.abc import Mapping
except ImportError:
from collections import Mapping
def deflate(node, index=None, path=None): def deflate(node, index=None, path=None):