Skip to content

Commit

Permalink
Merge pull request #2843 from gcrsaldanha/use-set-literal-in-docs
Browse files Browse the repository at this point in the history
🎨 Use set literal instead of set method in file uploading example
  • Loading branch information
davidism committed Jun 28, 2018
2 parents 81c2a1e + c5af1be commit b6edad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/patterns/fileuploads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b6edad6

Please sign in to comment.