def _add_deprecated_function_notice_to_docstring(doc, date, instructions):
if instructions:<EOL><INDENT>deprecation_message = """<STR_LIT>""" % (('<STR_LIT>' if date is None else ('<STR_LIT>' % date)), instructions)<EOL><DEDENT>else:<EOL><INDENT>deprecation_message = """<STR_LIT>""" % (('<STR_LIT>' if date is None else ('<STR_LIT>' % date)))<EOL><DEDENT>main_text = [deprecation_message]<EOL>return _add_notice_to_docstring(doc, '<STR_LIT>', main_text)<EOL>
Adds a deprecation notice to a docstring for deprecated functions.