Skip to content

Commit b6edad6

Browse files
authored
Merge pull request pallets#2843 from gcrsaldanha/use-set-literal-in-docs
🎨 Use set literal instead of set method in file uploading example
2 parents 81c2a1e + c5af1be commit b6edad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/patterns/fileuploads.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ bootstrapping code for our application::
2525
from werkzeug.utils import secure_filename
2626

2727
UPLOAD_FOLDER = '/path/to/the/uploads'
28-
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'])
28+
ALLOWED_EXTENSIONS = {'txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif'}
2929

3030
app = Flask(__name__)
3131
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER

0 commit comments

Comments
 (0)