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 47 def _add_deprecated_function_notice_to_docstring(doc, date, instructions): argument 50 ('in a future version' if date is None else ('after %s' % date))] 59 def _add_deprecated_arg_notice_to_docstring(doc, date, instructions, argument 70 (deprecation_string, 'in a future version' if date is None else 71 ('after %s' % date)), 'Instructions for updating:' 75 def _add_deprecated_arg_value_notice_to_docstring(doc, date, instructions, argument 83 when = 'in a future version' if date is None else ('after %s' % date) 94 def _validate_deprecation_args(date, instructions): argument [all …]
|