drop support for old Python, IPython < 3

Require IPython >= 3.0, Python >= 3.3
This commit is contained in:
Min RK
2014-10-31 13:03:50 -07:00
parent 83569221b9
commit 40a99e61ac
20 changed files with 110 additions and 173 deletions

View File

@@ -5,11 +5,7 @@
import re
from datetime import datetime
try:
# py3
from http.client import responses
except ImportError:
from httplib import responses
from http.client import responses
from jinja2 import TemplateNotFound
@@ -156,7 +152,7 @@ class BaseHandler(RequestHandler):
auth = self.authenticator
if auth is not None:
result = yield auth.authenticate(self, data)
raise gen.Return(result)
return result
else:
self.log.error("No authentication function, login is impossible!")
@@ -179,7 +175,7 @@ class BaseHandler(RequestHandler):
)
yield self.proxy.add_user(user)
user.spawner.add_poll_callback(self.user_stopped, user)
raise gen.Return(user)
return user
@gen.coroutine
def user_stopped(self, user):