Skip to content
Myr

Removed deprecated and awkward flask.session module

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 05c6502 · Browse files · 2 files+3 added−19 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+3 added−19 removed

  • other:+3 added−19 removed

2 files+3 added−19 removed

deleted:flask/session.py-19 removed
1# -*- coding: utf-8 -*-2"""3 flask.session4 ~~~~~~~~~~~~~56 This module used to flask with the session global so we moved it7 over to flask.sessions89 :copyright: (c) 2011 by Armin Ronacher.10 :license: BSD, see LICENSE for more details.11"""1213from warnings import warn14warn(DeprecationWarning('please use flask.sessions instead'))1516from .sessions import SecureCookieSession, NullSession1718Session = SecureCookieSession19_NullSession = NullSession
modified:CHANGES+3 added
18 unmodified lines
19 on an already used endpoint.20- Added wrapper module around simplejson and added default serialization21 of datetime objects. This allows much easier customization of how22 JSON is handled by Flask or any Flask extension.23- Removed deprecated internal ``flask.session`` module alias. Use24 ``flask.sessions`` instead to get the session module. This is not to25 be confused with ``flask.session`` the session proxy.2627Version 0.928-----------29
365 unmodified lines