mirror of
https://github.com/graphql-python/graphene.git
synced 2025-09-21 11:22:33 +03:00
No one is using func_name
This commit is contained in:
parent
5b40324e72
commit
db6ed96ef6
|
@ -1,21 +1,8 @@
|
|||
from __future__ import absolute_import
|
||||
|
||||
import six
|
||||
|
||||
from graphql.pyutils.compat 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__
|
||||
|
|
Loading…
Reference in New Issue
Block a user