Browse Source

Merge pull request #2843 from gcrsaldanha/use-set-literal-in-docs

🎨 Use set literal instead of set method in file uploading example
pull/2849/merge
David Lord 6 years ago committed by GitHub
parent
commit
b6edad64aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/patterns/fileuploads.rst

2
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

Loading…
Cancel
Save