Did I find the right examples for you? yes no

All Samples(1594)  |  Call(1481)  |  Derive(113)  |  Import(0)
Base class for warnings about deprecated features.

src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/wrappers.py   gae-twitter-oauth-example(Download)
        if __debug__ and charset is not None: # pragma: no cover
            from warnings import warn
            warn(DeprecationWarning('charset was deprecated and is ignored.'),
                 stacklevel=2)
        charset = self.charset
    def header_list(self): # pragma: no cover
        # XXX: deprecated
        if __debug__:
            from warnings import warn
            warn(DeprecationWarning('header_list is deprecated'),
    def fix_headers(self, environ):
        # XXX: deprecated
        if __debug__:
            from warnings import warn
            warn(DeprecationWarning('called into deprecated fix_headers baseclass '
            if __debug__:
                from warnings import warn
                warn(DeprecationWarning('fix_headers changed behavior in 0.6 '
                                        'and is now called get_wsgi_headers. '
                                        'See documentation for more details.'),

src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/test.py   gae-twitter-oauth-example(Download)
def File(fd, filename=None, mimetype=None):
    """Backwards compat."""
    from warnings import warn
    warn(DeprecationWarning('werkzeug.test.File is deprecated, use the '
                            'EnvironBuilder or FileStorage instead'))
        elif isinstance(value, dict):
            from warnings import warn
            warn(DeprecationWarning('it\'s no longer possible to pass dicts '
                                    'as `data`.  Use tuples or FileStorage '
                                    'objects instead'), stacklevel=2)

src/w/e/webapp2_example-HEAD/lib/webob/descriptors.py   webapp2_example(Download)
    def warn(self):
        raise DeprecationWarning('The attribute %s is deprecated: %s'
            % (self.attr, self.message)
        )
 

src/w/e/webapp2_example-HEAD/lib/webapp2_extras/users.py   webapp2_example(Download)
 
warnings.warn(DeprecationWarning(
    'webapp2_extras.users is deprecated. '
    'App Engine-specific modules were moved to webapp2_extras.appengine.'),
    stacklevel=1)

src/w/e/webapp2_example-HEAD/lib/webapp2_extras/sessions_ndb.py   webapp2_example(Download)
 
warnings.warn(DeprecationWarning(
    'webapp2_extras.sessions_ndb is deprecated. '
    'App Engine-specific modules were moved to webapp2_extras.appengine.'),
    stacklevel=1)

src/w/e/webapp2_example-HEAD/lib/webapp2_extras/sessions_memcache.py   webapp2_example(Download)
 
warnings.warn(DeprecationWarning(
    'webapp2_extras.sessions_memcache is deprecated. '
    'App Engine-specific modules were moved to webapp2_extras.appengine.'),
    stacklevel=1)

src/w/e/webapp2_example-HEAD/lib/webapp2_extras/local_app.py   webapp2_example(Download)
 
warnings.warn(DeprecationWarning(
    'webapp2_extras.local_app is deprecated. webapp2.WSGIApplication is now '
    'thread-safe by default when webapp2_extras.local is available.'),
    stacklevel=1)

src/w/e/webapp2_example-HEAD/lib/webapp2_extras/config.py   webapp2_example(Download)
 
warnings.warn(DeprecationWarning(
    'webapp2_extras.config is deprecated. '
    'The WSGIApplication uses webapp2.Config instead.'),
    stacklevel=1)

src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/wsgi.py   gae-twitter-oauth-example(Download)
        if not silent:
            from warnings import warn
            warn(DeprecationWarning('non-silent usage of the '
            'LimitedStream is deprecated.  If you want to '
            'continue to use the stream in non-silent usage '

src/g/a/gae-twitter-oauth-example-HEAD/werkzeug/utils.py   gae-twitter-oauth-example(Download)
    def __init__(self, func, name=None, doc=None, writeable=False):
        if writeable:
            from warnings import warn
            warn(DeprecationWarning('the writeable argument to the '
                                    'cached property is a noop since 0.6 '

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next