##// END OF EJS Templates
Update version check to work with tornado 2.1.0 or 2.1.1
Fernando Perez -
Show More
@@ -35,7 +35,7 except ImportError:
35 publish_string = None
35 publish_string = None
36
36
37 #-----------------------------------------------------------------------------
37 #-----------------------------------------------------------------------------
38 # Monkeypatch for Tornado 2.1.1 - Remove when no longer necessary!
38 # Monkeypatch for Tornado <= 2.1.1 - Remove when no longer necessary!
39 #-----------------------------------------------------------------------------
39 #-----------------------------------------------------------------------------
40
40
41 # Google Chrome, as of release 16, changed its websocket protocol number. The
41 # Google Chrome, as of release 16, changed its websocket protocol number. The
@@ -56,7 +56,7 except ImportError:
56
56
57 import tornado
57 import tornado
58
58
59 if tornado.version == '2.1.1':
59 if tornado.version_info <= (2,1,1):
60
60
61 def _execute(self, transforms, *args, **kwargs):
61 def _execute(self, transforms, *args, **kwargs):
62 from tornado.websocket import WebSocketProtocol8, WebSocketProtocol76
62 from tornado.websocket import WebSocketProtocol8, WebSocketProtocol76
General Comments 0
You need to be logged in to leave comments. Login now