309
309
def _warn_deprecated(self, func, *args, **kwargs):
310
310
warn(msg, DeprecationWarning, stacklevel=3)
311
311
return func(self, *args, **kwargs)
314
314
"""appending to %s is deprecated""" % (variable_name,)
315
315
return self._warn_deprecated(list.append, obj)