mirror of
https://github.com/graphql-python/graphene.git
synced 2025-04-25 03:43:42 +03:00
25 lines
359 B
Python
25 lines
359 B
Python
from __future__ import absolute_import
|
|
|
|
import six
|
|
|
|
try:
|
|
from enum import Enum
|
|
except ImportError:
|
|
from .enum import Enum
|
|
|
|
try:
|
|
from inspect import signature
|
|
except ImportError:
|
|
from .signature import signature
|
|
|
|
if six.PY2:
|
|
|
|
def func_name(func):
|
|
return func.func_name
|
|
|
|
|
|
else:
|
|
|
|
def func_name(func):
|
|
return func.__name__
|