🎨 Use set literal instead of set method
This commit is contained in:
parent
7627d9ce13
commit
c5af1be70f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue