Browse Source

🎨 Use set literal instead of set method

pull/2843/head
Gabriel Saldanha 7 years ago
parent
commit
c5af1be70f
  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 from werkzeug.utils import secure_filename
UPLOAD_FOLDER = '/path/to/the/uploads' 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 = Flask(__name__)
app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER

Loading…
Cancel
Save