# License for the specific language governing permissions and limitations
# under the License.
-import logging
import os.path
import tornado.auth
import tornado.escape
import tornado.ioloop
import tornado.options
import tornado.web
-import uimodules
from tornado.options import define, options
self.render("stream.html", stream=stream)
-import logging
class AuthLoginHandler(BaseHandler, tornado.auth.FacebookGraphMixin):
@tornado.web.asynchronous
def get(self):
from tornado import httpclient
from tornado import escape
from tornado.httputil import url_concat
-from tornado.ioloop import IOLoop
from tornado.util import bytes_type
class OpenIdMixin(object):
from __future__ import with_statement
import cStringIO
-import calendar
import collections
-import email.utils
-import errno
-import httplib
import logging
-import os
import pycurl
-import sys
import threading
import time
+import calendar
+import email.utils
import httplib
import os
import time
"""HTTP utility code shared by clients and servers."""
+import logging
import urllib
import re
events = {}
for kevent in kevents:
fd = kevent.ident
- flags = 0
if kevent.filter == select.KQ_FILTER_READ:
events[fd] = events.get(fd, 0) | IOLoop.READ
if kevent.filter == select.KQ_FILTER_WRITE:
import collections
import errno
-import functools
import logging
import socket
import sys
import collections
import contextlib
import copy
-import errno
import functools
import logging
import os.path
import contextlib
import functools
import itertools
-import logging
import sys
import threading
import base64
import binascii
import gzip
-import logging
import socket
from contextlib import closing
from tornado import httpclient, simple_httpclient
from tornado.escape import json_decode, utf8, _unicode, recursive_unicode
-from tornado.iostream import IOStream
from tornado.simple_httpclient import SimpleAsyncHTTPClient
from tornado.testing import AsyncHTTPTestCase, LogTrapTestCase
from tornado.util import b, bytes_type
from tornado.web import Application, RequestHandler
-import logging
import os
-import re
-import socket
-import unittest
-import urllib
try:
import ssl
import unittest
import time
-from tornado import ioloop
from tornado.testing import AsyncTestCase, LogTrapTestCase
class TestIOLoop(AsyncTestCase, LogTrapTestCase):
import logging
import re
import socket
-import tornado.ioloop
class CookieTestRequestHandler(RequestHandler):
# stub out enough methods to make the secure_cookie functions work
from wsgiref.validate import validator
-from tornado.escape import json_encode
from tornado.testing import AsyncHTTPTestCase, LogTrapTestCase
from tornado.util import b
from tornado.web import RequestHandler
from tornado.httpserver import HTTPServer
from tornado.stack_context import StackContext, NullContext
import contextlib
-import functools
import logging
import os
import sys
import time
import tornado.ioloop
-import traceback
import unittest
_next_port = 10000
import base64
import binascii
import calendar
-import contextlib
import datetime
import email.utils
import functools
import functools
import hashlib
import logging
-import re
import struct
import time
import tornado.escape