]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Make all internal imports of tornado modules absolute
authorBen Darnell <bdarnell@beaker.local>
Fri, 30 Jul 2010 00:03:40 +0000 (17:03 -0700)
committerBen Darnell <bdarnell@beaker.local>
Fri, 30 Jul 2010 00:03:40 +0000 (17:03 -0700)
tornado/auth.py
tornado/autoreload.py
tornado/httpclient.py
tornado/httpserver.py
tornado/ioloop.py
tornado/iostream.py
tornado/s3server.py
tornado/template.py
tornado/web.py
tornado/wsgi.py

index 4575119090e2dec71cde92373b6001ce8ce13774..a410173ef8d33531f971251d12bce3b1236e1b40 100644 (file)
@@ -49,14 +49,15 @@ import binascii
 import cgi
 import hashlib
 import hmac
-import httpclient
-import escape
 import logging
 import time
 import urllib
 import urlparse
 import uuid
 
+from tornado import httpclient
+from tornado import escape
+
 class OpenIdMixin(object):
     """Abstract implementation of OpenID and Attribute Exchange.
 
index 876c76d73f5fe8afcf589a0a2806aaca3fe3a247..69738bdc52e07530a245533bdbc6fabf84b4315b 100644 (file)
@@ -21,12 +21,13 @@ and Google AppEngine.
 """
 
 import functools
-import ioloop
 import logging
 import os
 import sys
 import types
 
+from tornado import ioloop
+
 try:
     import signal
 except ImportError:
index 6abcc747e8d6d09fa5233624c19c480f6f93c6ef..522f8ce37255c51d83843d07d08b1b9ed29804c0 100644 (file)
 
 from __future__ import with_statement
 
+import cStringIO
 import calendar
 import collections
-import cStringIO
 import email.utils
 import errno
-import escape
 import httplib
-import httputil
-import ioloop
 import logging
 import pycurl
-import stack_context
 import sys
 import time
 import weakref
 
+from tornado import escape
+from tornado import httputil
+from tornado import ioloop
+from tornado import stack_context
+
 class HTTPClient(object):
     """A blocking HTTP client backed with pycurl.
 
index 267960a452827fa8175e58e4cd92601a02cef2cb..8c4cee9dd9ccc0caabbd3fcc0c773f2400851a02 100644 (file)
 
 import cgi
 import errno
-import httputil
-import ioloop
-import iostream
 import logging
 import os
 import socket
 import time
 import urlparse
 
+from tornado import httputil
+from tornado import ioloop
+from tornado import iostream
+
 try:
     import fcntl
 except ImportError:
index 97220314c9d218d0a5e4ff64566f9211b8b43a28..63b4e3e65b2f50a50a828debec0e4ba3b0bbc0c2 100644 (file)
@@ -21,10 +21,11 @@ import errno
 import os
 import logging
 import select
-import stack_context
 import time
 import traceback
 
+from tornado import stack_context
+
 try:
     import signal
 except ImportError:
index c22ef2cf87a312b7d442d5470028be0f8ece5bfc..6ea1042796d538bb6a63e6d4ce0b44fba3d57e47 100644 (file)
 """A utility class to write to and read from a non-blocking socket."""
 
 import errno
-import ioloop
 import logging
 import socket
 
+from tornado import ioloop
+
 class IOStream(object):
     """A utility class to write to and read from a non-blocking socket.
 
index 2e8a97de201b9b26ea9e87b5891699d55f3a962b..b739c6c3b975479392baa34036d389264f7e0a34 100644 (file)
@@ -33,15 +33,15 @@ S3 client with this module:
 
 import bisect
 import datetime
-import escape
 import hashlib
-import httpserver
-import ioloop
 import os
 import os.path
 import urllib
-import web
 
+from tornado import escape
+from tornado import httpserver
+from tornado import ioloop
+from tornado import web
 
 def start(port, root_directory="/tmp/s3", bucket_depth=0):
     """Starts the mock S3 server on the given port at the given path."""
index b807cc68a25590c8b36d650cc228b1f637132e79..aa52c23d67a6d2f7e257759aae26a0d4aa6ea87f 100644 (file)
@@ -83,11 +83,12 @@ from __future__ import with_statement
 
 import cStringIO
 import datetime
-import escape
 import logging
 import os.path
 import re
 
+from tornado import escape
+
 class Template(object):
     """A compiled template.
 
index 2dd2686fac1884a9f1540b3320589704d98fa888..d8309e25d0e5e9a30d2765f9cd048a3b11653c95 100644 (file)
@@ -45,35 +45,36 @@ getting started guide.
 
 from __future__ import with_statement
 
+import Cookie
 import base64
 import binascii
+import cStringIO
 import calendar
 import contextlib
-import Cookie
-import cStringIO
 import datetime
 import email.utils
-import escape
 import functools
 import gzip
 import hashlib
 import hmac
 import httplib
-import locale
 import logging
 import mimetypes
 import os.path
 import re
-import stack_context
 import stat
 import sys
-import template
 import time
 import types
 import urllib
 import urlparse
 import uuid
 
+from tornado import escape
+from tornado import locale
+from tornado import stack_context
+from tornado import template
+
 class RequestHandler(object):
     """Subclass this class and define get() or post() to make a handler.
 
index de35669673af938e4629e01f245bd1e2bc329333..f2b82c57d1abbb1fe2e572879c06af9d24dc643a 100644 (file)
@@ -50,16 +50,17 @@ frameworks on the Tornado HTTP server and I/O loop. See WSGIContainer for
 details and documentation.
 """
 
-import cgi
 import cStringIO
-import escape
+import cgi
 import httplib
-import httputil
 import logging
 import sys
 import time
 import urllib
-import web
+
+from tornado import escape
+from tornado import httputil
+from tornado import web
 
 class WSGIApplication(web.Application):
     """A WSGI-equivalent of web.Application.