<s> '''<STR_LIT>''' <EOL> import warnings <EOL> from decorator import decorator <EOL> import six <EOL> import inspect <EOL> def moved ( moved_from , version , version_removed ) : <EOL> '''<STR_LIT>''' <EOL> def __wrapper ( func , * args , ** kwargs ) : <EOL> '''<STR_LIT>''' <EOL> code = six . get_function_code ( func ) <EOL> warnings . warn_explicit ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" . format ( moved_from , func . __module__ , <EOL> func . __name__ , version , version_removed ) , <EOL> category = DeprecationWarning , <EOL> filename = code . co_filename , <EOL> lineno = code . co_firstlineno + <NUM_LIT:1> <EOL> ) <EOL> return func ( * args , ** kwargs ) <EOL> return decorator ( __wrapper ) <EOL> def deprecated ( version , version_removed ) : <EOL> '''<STR_LIT>''' <EOL> def __wrapper ( func , * args , ** kwargs ) : <EOL> '''<STR_LIT>''' <EOL> code = six . get_function_code ( func ) <EOL> warnings . warn_explicit ( <EOL> "<STR_LIT>" <EOL> "<STR_LIT>" <EOL> . format ( func . __module__ , func . __name__ , <EOL> version , version_removed ) , <EOL> category = DeprecationWarning , <EOL> filename = code . co_filename , <EOL> lineno = code . co_firstlineno + <NUM_LIT:1> <EOL> ) <EOL> return func ( * args , ** kwargs ) <EOL> return decorator ( __wrapper ) </s>
