import warnings


class datetime(datetime.datetime):

    def strftime(self, *args, **kwargs):
        warnings.warn('strftime is deprecated', DeprecationWarning,
            stacklevel=2)
return super(datetime, self).strftime(*args, **kwargs)
Disallow `strftime` in a code base