From d362399e7ebfe167a27daef20e198ecabed1b49b Mon Sep 17 00:00:00 2001 From: Gabriel Saldanha Date: Wed, 27 Jun 2018 08:23:44 -0300 Subject: [PATCH 1/3] :fire: Remove code supposed to be removed at v1.0 --- flask/__init__.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/flask/__init__.py b/flask/__init__.py index 1ab13c36..2e5670f5 100644 --- a/flask/__init__.py +++ b/flask/__init__.py @@ -43,7 +43,3 @@ from . import json # This was the only thing that Flask used to export at one point and it had # a more generic name. jsonify = json.jsonify - -# backwards compat, goes away in 1.0 -from .sessions import SecureCookieSession as Session -json_available = True From c5af1be70f3bda17020267c84e8a6efafcbd854c Mon Sep 17 00:00:00 2001 From: Gabriel Saldanha Date: Wed, 27 Jun 2018 08:58:26 -0300 Subject: [PATCH 2/3] :art: Use set literal instead of set method --- docs/patterns/fileuploads.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/patterns/fileuploads.rst b/docs/patterns/fileuploads.rst index fef92c57..d3b16643 100644 --- a/docs/patterns/fileuploads.rst +++ b/docs/patterns/fileuploads.rst @@ -25,7 +25,7 @@ bootstrapping code for our application:: from werkzeug.utils import secure_filename UPLOAD_FOLDER = '/path/to/the/uploads' - ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif']) + ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'} app = Flask(__name__) app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER From bb63298b71b4f06456946b4a817198a099b17dbd Mon Sep 17 00:00:00 2001 From: Juan Lara Date: Wed, 27 Jun 2018 21:49:21 -0700 Subject: [PATCH 3/3] Typo in docs "keeps track on" -> "keeps track of" --- docs/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api.rst b/docs/api.rst index cdb05638..ee7eb041 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -115,7 +115,7 @@ To access the current session you can use the :class:`session` object: .. class:: session The session object works pretty much like an ordinary dict, with the - difference that it keeps track on modifications. + difference that it keeps track of modifications. This is a proxy. See :ref:`notes-on-proxies` for more information.