From c5af1be70f3bda17020267c84e8a6efafcbd854c Mon Sep 17 00:00:00 2001 From: Gabriel Saldanha Date: Wed, 27 Jun 2018 08:58:26 -0300 Subject: [PATCH] :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