]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Fix file upload demo on Python 2. 2025/head
authorChris Gavin <chris@chrisgavin.me>
Tue, 25 Apr 2017 20:40:22 +0000 (21:40 +0100)
committerChris Gavin <chris@chrisgavin.me>
Tue, 25 Apr 2017 20:40:22 +0000 (21:40 +0100)
demos/file_upload/file_uploader.py

index 025c2159e0ad6476e7e9607813c31c7ee912b525..5f13fcb61f999c745cf540e23a0fc7ad4677b671 100644 (file)
@@ -9,6 +9,7 @@ single file without encoding.
 See also file_receiver.py in this directory, a server that receives uploads.
 """
 
+from __future__ import print_function
 import mimetypes
 import os
 import sys