mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-16 19:12:21 +03:00
Fixes for python 2.7
This commit is contained in:
parent
595d5b5a9d
commit
36c2d757ce
|
@ -1,6 +1,10 @@
|
|||
import re
|
||||
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 graphql_relay import connection_from_list
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
import inspect
|
||||
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 .argument import Argument, to_arguments
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
import json
|
||||
from collections.abc import Mapping
|
||||
try:
|
||||
from collections.abc import Mapping
|
||||
except ImportError:
|
||||
from collections import Mapping
|
||||
|
||||
|
||||
def to_key(value):
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user