Skip to content

Commit

Permalink
Update version check to work with tornado 2.1.0 or 2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fperez committed Oct 30, 2011
1 parent 113b26e commit 36ccaa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/frontend/html/notebook/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
publish_string = None

#-----------------------------------------------------------------------------
# Monkeypatch for Tornado 2.1.1 - Remove when no longer necessary!
# Monkeypatch for Tornado <= 2.1.1 - Remove when no longer necessary!
#-----------------------------------------------------------------------------

# Google Chrome, as of release 16, changed its websocket protocol number. The
Expand All @@ -56,7 +56,7 @@

import tornado

if tornado.version == '2.1.1':
if tornado.version_info <= (2,1,1):

def _execute(self, transforms, *args, **kwargs):
from tornado.websocket import WebSocketProtocol8, WebSocketProtocol76
Expand Down

0 comments on commit 36ccaa3

Please sign in to comment.