#NEWLINE# def idref_deprecated( entity ) : #NEWLINE# #INDENT# 'Raises a Python UserWarning if `entity` arguments contains an idref\n    value.\n\n    ' #NEWLINE# if ( not getattr ( entity , 'idref' , None ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# fmt = "The use of idrefs has been deprecated for this field. Received '{0}' object with idref: '{1}'." #NEWLINE# msg = fmt . format ( type ( fmt ) . __name__ , entity . idref ) #NEWLINE# warnings . warn ( msg )