mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-26 03:23:55 +03:00
commit
7bd77a0817
|
@ -6,13 +6,11 @@ string_types = (type(b''), type(u''))
|
|||
|
||||
|
||||
def warn_deprecation(text):
|
||||
warnings.simplefilter('always', DeprecationWarning)
|
||||
warnings.warn(
|
||||
text,
|
||||
category=DeprecationWarning,
|
||||
stacklevel=2
|
||||
)
|
||||
warnings.simplefilter('default', DeprecationWarning)
|
||||
|
||||
|
||||
def deprecated(reason):
|
||||
|
|
Loading…
Reference in New Issue
Block a user