]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Update future imports for recently added files.
authorBen Darnell <ben@bendarnell.com>
Tue, 31 Dec 2013 18:47:28 +0000 (13:47 -0500)
committerBen Darnell <ben@bendarnell.com>
Tue, 31 Dec 2013 20:08:50 +0000 (15:08 -0500)
(This is most meaningful for tornado.platform.asyncio, which needs
absolute imports for the python 2 backport of asyncio).

tornado/platform/asyncio.py
tornado/platform/caresresolver.py
tornado/test/resolve_test_helper.py
tornado/test/websocket_test.py

index 09b2bf3d3a91b04207a173d7abcd0e01ad181756..87f28044c6fac5369339e219c423aee7f8b61afe 100644 (file)
@@ -8,6 +8,8 @@ python3.4 -m tornado.test.runtests --ioloop=tornado.platform.asyncio.AsyncIOMain
 (the tests log a few warnings with AsyncIOMainLoop because they leave some
 unfinished callbacks on the event loop that fail when it resumes)
 """
+
+from __future__ import absolute_import, division, print_function, with_statement
 import asyncio
 import datetime
 import functools
index 7c16705d0c4c039db14a603dcf7f33887ebec9ae..c4648c2226903a2a9ff07e3a63d5f8c3bb81b762 100644 (file)
@@ -1,3 +1,4 @@
+from __future__ import absolute_import, division, print_function, with_statement
 import pycares
 import socket
 
index b4032fc4a4e0e093efe1e96a43dad4fa8e0ac654..59d183830544b8368e1cd873e774771653cb9517 100644 (file)
@@ -1,3 +1,4 @@
+from __future__ import absolute_import, division, print_function, with_statement
 from tornado.ioloop import IOLoop
 from tornado.netutil import ThreadedResolver
 from tornado.util import u
index d5cc1ceb4c3c01d8c47665d5583648209474cd2b..f48f00081dd892e5d55b2503b20cd5037098ce80 100644 (file)
@@ -1,3 +1,4 @@
+from __future__ import absolute_import, division, print_function, with_statement
 from tornado.concurrent import Future
 from tornado.httpclient import HTTPError, HTTPRequest
 from tornado.log import gen_log