#NEWLINE# def _lib( old_name ) : #NEWLINE# #INDENT# 'Deprecate a function moved to neutron_lib.api.converters/validators.' #NEWLINE# new_func = getattr ( lib_validators , old_name , None ) #NEWLINE# if ( not new_func ) : #NEWLINE# #INDENT# new_func = getattr ( lib_validators , old_name [ 1 : ] , None ) #NEWLINE# #UNINDENT# if ( not new_func ) : #NEWLINE# #INDENT# new_func = getattr ( lib_converters , old_name , None ) #NEWLINE# #UNINDENT# assert new_func #NEWLINE# return moves . moved_function ( old_name , old_name , __name__ , message = 'moved to neutron_lib' , version = 'mitaka' , removal_version = 'ocata' )