From: Ben Darnell Date: Tue, 31 Dec 2013 18:47:28 +0000 (-0500) Subject: Update future imports for recently added files. X-Git-Tag: v3.2.0b2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de6fa77ddaada1db8137187fa1b1948b34205c9e;p=thirdparty%2Ftornado.git Update future imports for recently added files. (This is most meaningful for tornado.platform.asyncio, which needs absolute imports for the python 2 backport of asyncio). --- diff --git a/tornado/platform/asyncio.py b/tornado/platform/asyncio.py index 09b2bf3d3..87f28044c 100644 --- a/tornado/platform/asyncio.py +++ b/tornado/platform/asyncio.py @@ -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 diff --git a/tornado/platform/caresresolver.py b/tornado/platform/caresresolver.py index 7c16705d0..c4648c222 100644 --- a/tornado/platform/caresresolver.py +++ b/tornado/platform/caresresolver.py @@ -1,3 +1,4 @@ +from __future__ import absolute_import, division, print_function, with_statement import pycares import socket diff --git a/tornado/test/resolve_test_helper.py b/tornado/test/resolve_test_helper.py index b4032fc4a..59d183830 100644 --- a/tornado/test/resolve_test_helper.py +++ b/tornado/test/resolve_test_helper.py @@ -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 diff --git a/tornado/test/websocket_test.py b/tornado/test/websocket_test.py index d5cc1ceb4..f48f00081 100644 --- a/tornado/test/websocket_test.py +++ b/tornado/test/websocket_test.py @@ -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