D | deprecation.py | 4 # you may not use this file except in compliance with the License. 7 # http://www.apache.org/licenses/LICENSE-2.0 46 def _add_deprecated_function_notice_to_docstring(doc, date, instructions): argument 49 ('in a future version' if date is None else ('after %s' % date))] 58 def _add_deprecated_arg_notice_to_docstring(doc, date, instructions, argument 69 (deprecation_string, 'in a future version' if date is None else 70 ('after %s' % date)), 'Instructions for updating:' 74 def _add_deprecated_arg_value_notice_to_docstring(doc, date, instructions, argument 82 when = 'in a future version' if date is None else ('after %s' % date) 93 def _validate_deprecation_args(date, instructions): argument [all …]
|