Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Convert print to a function and add future imports.

Automated with 2to3 and custom fixer.
2to3 -f print tornado > print.diff
2to3 -f print -d tornado > print_doctest.diff
maint/scripts/run_fixers.py -f future_import tornado > future.diff
cd tornado
git apply ../{print,print_doctest,future}.diff
  • Loading branch information...
commit 65df55da409acd8ec68d95a17d8bedf96d1f2e0f 1 parent 0d693ee
@bdarnell bdarnell authored
Showing with 81 additions and 80 deletions.
  1. +2 −3 maint/scripts/custom_fixers/fix_future_imports.py
  2. +1 −1  tornado/__init__.py
  3. +1 −1  tornado/auth.py
  4. +2 −2 tornado/autoreload.py
  5. +1 −1  tornado/concurrent.py
  6. +1 −1  tornado/curl_httpclient.py
  7. +1 −1  tornado/escape.py
  8. +1 −1  tornado/gen.py
  9. +3 −3 tornado/httpclient.py
  10. +1 −1  tornado/httpserver.py
  11. +3 −3 tornado/httputil.py
  12. +1 −1  tornado/ioloop.py
  13. +5 −5 tornado/iostream.py
  14. +1 −1  tornado/locale.py
  15. +1 −1  tornado/log.py
  16. +1 −1  tornado/netutil.py
  17. +7 −7 tornado/options.py
  18. +1 −1  tornado/platform/auto.py
  19. +1 −1  tornado/platform/common.py
  20. +1 −1  tornado/platform/epoll.py
  21. +1 −1  tornado/platform/interface.py
  22. +1 −1  tornado/platform/kqueue.py
  23. +1 −1  tornado/platform/posix.py
  24. +1 −1  tornado/platform/select.py
  25. +1 −1  tornado/platform/twisted.py
  26. +1 −1  tornado/platform/windows.py
  27. +1 −1  tornado/process.py
  28. +1 −1  tornado/simple_httpclient.py
  29. +1 −1  tornado/stack_context.py
  30. +2 −2 tornado/template.py
  31. +1 −1  tornado/test/auth_test.py
  32. +1 −1  tornado/test/concurrent_test.py
  33. +1 −1  tornado/test/curl_httpclient_test.py
  34. +1 −1  tornado/test/escape_test.py
  35. +1 −1  tornado/test/gen_test.py
  36. +2 −0  tornado/test/gettext_translations/extract_me.py
  37. +1 −1  tornado/test/httpclient_test.py
  38. +1 −1  tornado/test/httpserver_test.py
  39. +1 −1  tornado/test/httputil_test.py
  40. +1 −1  tornado/test/import_test.py
  41. +1 −1  tornado/test/ioloop_test.py
  42. +1 −1  tornado/test/iostream_test.py
  43. +1 −1  tornado/test/locale_test.py
  44. +1 −1  tornado/test/log_test.py
  45. +1 −1  tornado/test/netutil_test.py
  46. +1 −1  tornado/test/options_test.py
  47. +1 −1  tornado/test/process_test.py
  48. +1 −1  tornado/test/runtests.py
  49. +1 −1  tornado/test/simple_httpclient_test.py
  50. +1 −1  tornado/test/stack_context_test.py
  51. +1 −1  tornado/test/template_test.py
  52. +1 −1  tornado/test/testing_test.py
  53. +1 −1  tornado/test/twisted_test.py
  54. +1 −1  tornado/test/util.py
  55. +1 −1  tornado/test/util_test.py
  56. +1 −1  tornado/test/web_test.py
  57. +1 −1  tornado/test/wsgi_test.py
  58. +2 −2 tornado/testing.py
  59. +1 −1  tornado/util.py
  60. +1 −1  tornado/web.py
  61. +1 −1  tornado/websocket.py
  62. +1 −1  tornado/wsgi.py
View
5 maint/scripts/custom_fixers/fix_future_imports.py
@@ -22,11 +22,12 @@ def new_future_import(self, old):
new = FromImport("__future__",
[Name("absolute_import", prefix=" "), Comma(),
Name("division", prefix=" "), Comma(),
+ Name("print_function", prefix=" "), Comma(),
Name("with_statement", prefix=" ")])
if old is not None:
new.prefix = old.prefix
return new
-
+
def transform(self, node, results):
self.found_future_import = True
return self.new_future_import(node)
@@ -56,5 +57,3 @@ def finish_tree(self, tree, filename):
pos = 0
tree.insert_child(pos, self.new_future_import(None))
tree.insert_child(pos+1, Newline()) # terminates the import stmt
-
-
View
2  tornado/__init__.py
@@ -16,7 +16,7 @@
"""The Tornado web server and tools."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
# version is a human-readable version number.
View
2  tornado/auth.py
@@ -44,7 +44,7 @@ def _on_auth(self, user):
# Save the user with, e.g., set_secure_cookie()
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import base64
import binascii
View
4 tornado/autoreload.py
@@ -31,7 +31,7 @@
incorrectly.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import os
import sys
@@ -263,7 +263,7 @@ def main():
script = sys.argv[1]
sys.argv = sys.argv[1:]
else:
- print >>sys.stderr, _USAGE
+ print(_USAGE, file=sys.stderr)
sys.exit(1)
try:
View
2  tornado/concurrent.py
@@ -13,7 +13,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import functools
import sys
View
2  tornado/curl_httpclient.py
@@ -16,7 +16,7 @@
"""Blocking and non-blocking HTTP client implementations using pycurl."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import cStringIO
import collections
View
2  tornado/escape.py
@@ -20,7 +20,7 @@
have crept in over time.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import htmlentitydefs
import re
View
2  tornado/gen.py
@@ -62,7 +62,7 @@ def get(self):
called with more than one argument or any keyword arguments, the result
is an `Arguments` object, which is a named tuple ``(args, kwargs)``.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import functools
import operator
View
6 tornado/httpclient.py
@@ -29,7 +29,7 @@
supported version is 7.18.2, and the recommended version is 7.21.1 or newer.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import calendar
import email.utils
@@ -446,9 +446,9 @@ def main():
else:
raise
if options.print_headers:
- print response.headers
+ print(response.headers)
if options.print_body:
- print response.body
+ print(response.body)
client.close()
if __name__ == "__main__":
View
2  tornado/httpserver.py
@@ -24,7 +24,7 @@ class except to start a server at the beginning of the process
`tornado.web.RequestHandler.request`.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import Cookie
import socket
View
6 tornado/httputil.py
@@ -16,7 +16,7 @@
"""HTTP utility code shared by clients and servers."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import urllib
import re
@@ -47,8 +47,8 @@ class HTTPHeaders(dict):
['A=B', 'C=D']
>>> for (k,v) in sorted(h.get_all()):
- ... print '%s: %s' % (k,v)
- ...
+ ... print('%s: %s' % (k,v))
+ ...
Content-Type: text/html
Set-Cookie: A=B
Set-Cookie: C=D
View
2  tornado/ioloop.py
@@ -26,7 +26,7 @@
`IOLoop.add_timeout` is a non-blocking alternative to `time.sleep`.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import datetime
import errno
View
10 tornado/iostream.py
@@ -24,7 +24,7 @@
* `PipeIOStream`: Pipe-based IOStream implementation.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import collections
import errno
@@ -874,17 +874,17 @@ def _merge_prefix(deque, size):
string of up to size bytes.
>>> d = collections.deque(['abc', 'de', 'fghi', 'j'])
- >>> _merge_prefix(d, 5); print d
+ >>> _merge_prefix(d, 5); print(d)
deque(['abcde', 'fghi', 'j'])
Strings will be split as necessary to reach the desired size.
- >>> _merge_prefix(d, 7); print d
+ >>> _merge_prefix(d, 7); print(d)
deque(['abcdefg', 'hi', 'j'])
- >>> _merge_prefix(d, 3); print d
+ >>> _merge_prefix(d, 3); print(d)
deque(['abc', 'defg', 'hi', 'j'])
- >>> _merge_prefix(d, 100); print d
+ >>> _merge_prefix(d, 100); print(d)
deque(['abcdefghij'])
"""
if len(deque) == 1 and len(deque[0]) <= size:
View
2  tornado/locale.py
@@ -39,7 +39,7 @@
the locale.translate method will simply return the original string.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import csv
import datetime
View
2  tornado/log.py
@@ -28,7 +28,7 @@
`logging` module. For example, you may wish to send ``tornado.access`` logs
to a separate file for analysis.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import logging
import logging.handlers
View
2  tornado/netutil.py
@@ -16,7 +16,7 @@
"""Miscellaneous network utility code."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import errno
import os
View
14 tornado/options.py
@@ -57,7 +57,7 @@ def connect():
instances to define isolated sets of options, such as for subcommands.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import datetime
import re
@@ -218,15 +218,15 @@ def print_help(self, file=None):
"""Prints all the command line options to stderr (or another file)."""
if file is None:
file = sys.stderr
- print >> file, "Usage: %s [OPTIONS]" % sys.argv[0]
- print >> file, "\nOptions:\n"
+ print("Usage: %s [OPTIONS]" % sys.argv[0], file=file)
+ print("\nOptions:\n", file=file)
by_group = {}
for option in self._options.itervalues():
by_group.setdefault(option.group_name, []).append(option)
for filename, o in sorted(by_group.items()):
if filename:
- print >> file, "\n%s options:\n" % os.path.normpath(filename)
+ print("\n%s options:\n" % os.path.normpath(filename), file=file)
o.sort(key=lambda option: option.name)
for option in o:
prefix = option.name
@@ -238,10 +238,10 @@ def print_help(self, file=None):
lines = textwrap.wrap(description, 79 - 35)
if len(prefix) > 30 or len(lines) == 0:
lines.insert(0, '')
- print >> file, " --%-30s %s" % (prefix, lines[0])
+ print(" --%-30s %s" % (prefix, lines[0]), file=file)
for line in lines[1:]:
- print >> file, "%-34s %s" % (' ', line)
- print >> file
+ print("%-34s %s" % (' ', line), file=file)
+ print(file=file)
def _help_callback(self, value):
if value:
View
2  tornado/platform/auto.py
@@ -23,7 +23,7 @@
from tornado.platform.auto import set_close_exec
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import os
View
2  tornado/platform/common.py
@@ -1,5 +1,5 @@
"""Lowest-common-denominator implementations of platform functionality."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import errno
import socket
View
2  tornado/platform/epoll.py
@@ -18,7 +18,7 @@
Supports the standard library's `select.epoll` function for Python 2.6+,
and our own C module for Python 2.5.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import os
import select
View
2  tornado/platform/interface.py
@@ -21,7 +21,7 @@
implementation from `tornado.platform.auto`.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
def set_close_exec(fd):
View
2  tornado/platform/kqueue.py
@@ -14,7 +14,7 @@
# License for the specific language governing permissions and limitations
# under the License.
"""KQueue-based IOLoop implementation for BSD/Mac systems."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import select
View
2  tornado/platform/posix.py
@@ -16,7 +16,7 @@
"""Posix implementations of platform-specific functionality."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import fcntl
import os
View
2  tornado/platform/select.py
@@ -17,7 +17,7 @@
Used as a fallback for systems that don't support epoll or kqueue.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import select
View
2  tornado/platform/twisted.py
@@ -64,7 +64,7 @@
This module has been tested with Twisted versions 11.0.0 and newer.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import functools
import datetime
View
2  tornado/platform/windows.py
@@ -2,7 +2,7 @@
# for production use.
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import ctypes
import ctypes.wintypes
View
2  tornado/process.py
@@ -16,7 +16,7 @@
"""Utilities for working with multiple processes."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import errno
import functools
View
2  tornado/simple_httpclient.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado.escape import utf8, _unicode, native_str
from tornado.httpclient import HTTPRequest, HTTPResponse, HTTPError, AsyncHTTPClient, main, _RequestProxy
View
2  tornado/stack_context.py
@@ -66,7 +66,7 @@ def die_on_error():
block that references your `StackContext`.
'''
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import contextlib
import functools
View
4 tornado/template.py
@@ -179,7 +179,7 @@ def add(x, y):
``{% continue %}`` may be used inside the loop.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import cStringIO
import datetime
@@ -620,7 +620,7 @@ def write_line(self, line, line_number, indent=None):
ancestors = ["%s:%d" % (tmpl.name, lineno)
for (tmpl, lineno) in self.include_stack]
line_comment += ' (via %s)' % ', '.join(reversed(ancestors))
- print >> self.file, " " * indent + line + line_comment
+ print(" " * indent + line + line_comment, file=self.file)
class _TemplateReader(object):
View
2  tornado/test/auth_test.py
@@ -4,7 +4,7 @@
# python 3)
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado.auth import OpenIdMixin, OAuthMixin, OAuth2Mixin, TwitterMixin
from tornado.escape import json_decode
from tornado.testing import AsyncHTTPTestCase
View
2  tornado/test/concurrent_test.py
@@ -13,7 +13,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import logging
import re
View
2  tornado/test/curl_httpclient_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado.httpclient import HTTPRequest
from tornado.stack_context import ExceptionStackContext
from tornado.testing import AsyncHTTPTestCase
View
2  tornado/test/escape_test.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import tornado.escape
from tornado.escape import utf8, xhtml_escape, xhtml_unescape, url_escape, url_unescape, to_unicode, json_decode, json_encode
View
2  tornado/test/gen_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import functools
from tornado.escape import url_escape
from tornado.httpclient import AsyncHTTPClient
View
2  tornado/test/gettext_translations/extract_me.py
@@ -6,4 +6,6 @@
# 2) Edit tornado_test.po, setting CHARSET and setting msgstr
# 3) msgfmt tornado_test.po -o tornado_test.mo
# 4) Put the file in the proper location: $LANG/LC_MESSAGES
+
+from __future__ import absolute_import, division, print_function, with_statement
_("school")
View
2  tornado/test/httpclient_test.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import base64
import binascii
View
2  tornado/test/httpserver_test.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado import httpclient, simple_httpclient, netutil
from tornado.escape import json_decode, utf8, _unicode, recursive_unicode, native_str
from tornado.httpserver import HTTPServer
View
2  tornado/test/httputil_test.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado.httputil import url_concat, parse_multipart_form_data, HTTPHeaders
from tornado.escape import utf8
from tornado.log import gen_log
View
2  tornado/test/import_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado.test.util import unittest
View
2  tornado/test/ioloop_test.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import contextlib
import datetime
import functools
View
2  tornado/test/iostream_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado import netutil
from tornado.ioloop import IOLoop
from tornado.iostream import IOStream, SSLIOStream, PipeIOStream
View
2  tornado/test/locale_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import os
import tornado.locale
View
2  tornado/test/log_test.py
@@ -13,7 +13,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import contextlib
import glob
View
2  tornado/test/netutil_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import socket
View
2  tornado/test/options_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import sys
View
2  tornado/test/process_test.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import logging
import os
import signal
View
2  tornado/test/runtests.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import logging
import textwrap
import sys
View
2  tornado/test/simple_httpclient_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import collections
from contextlib import closing
View
2  tornado/test/stack_context_test.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado.log import app_log
from tornado.stack_context import StackContext, wrap, NullContext
View
2  tornado/test/template_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import os
import traceback
View
2  tornado/test/testing_test.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import time
from tornado.testing import AsyncTestCase
from tornado.test.util import unittest
View
2  tornado/test/twisted_test.py
@@ -17,7 +17,7 @@
Unittest for the twisted-style reactor.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import os
import shutil
View
2  tornado/test/util.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import os
import sys
View
2  tornado/test/util_test.py
@@ -1,5 +1,5 @@
# coding: utf-8
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import sys
from tornado.escape import utf8
View
2  tornado/test/web_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from tornado import gen
from tornado.escape import json_decode, utf8, to_unicode, recursive_unicode, native_str, to_basestring
from tornado.iostream import IOStream
View
2  tornado/test/wsgi_test.py
@@ -1,4 +1,4 @@
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from wsgiref.validate import validator
from tornado.escape import json_decode
View
4 tornado/testing.py
@@ -18,7 +18,7 @@
information.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
from cStringIO import StringIO
try:
@@ -496,7 +496,7 @@ def main(**kwargs):
kwargs['buffer'] = True
if __name__ == '__main__' and len(argv) == 1:
- print >> sys.stderr, "No tests specified"
+ print("No tests specified", file=sys.stderr)
sys.exit(1)
try:
# In order to be able to run tests by their fully-qualified name
View
2  tornado/util.py
@@ -1,6 +1,6 @@
"""Miscellaneous utility functions."""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import zlib
View
2  tornado/web.py
@@ -49,7 +49,7 @@ def get(self):
back to the main thread before finishing the request.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import Cookie
import base64
View
2  tornado/websocket.py
@@ -17,7 +17,7 @@
documentation for caveats).
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
# Author: Jacob Kristhammar, 2010
import array
View
2  tornado/wsgi.py
@@ -29,7 +29,7 @@
and Tornado handlers in a single server.
"""
-from __future__ import absolute_import, division, with_statement
+from __future__ import absolute_import, division, print_function, with_statement
import Cookie
import httplib
Please sign in to comment.
Something went wrong with that request. Please try again.