mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-13 13:16:49 +03:00
Fixes to how singledispatch is imported
This commit is contained in:
parent
bbbf688449
commit
1988519536
|
@ -51,16 +51,16 @@ def get_filtering_args_from_filterset(filterset_class, type):
|
||||||
|
|
||||||
|
|
||||||
def import_single_dispatch():
|
def import_single_dispatch():
|
||||||
singledispatch = None
|
|
||||||
try:
|
try:
|
||||||
from functools import singledispatch
|
from functools import singledispatch
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
singledispatch = None
|
||||||
|
|
||||||
try:
|
if not singledispatch:
|
||||||
from singledispatch import singledispatch
|
try:
|
||||||
except ImportError:
|
from singledispatch import singledispatch
|
||||||
pass
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
if not singledispatch:
|
if not singledispatch:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user