Show More
@@ -1,12 +1,15 b'' | |||||
1 | """The IPython HTML Notebook""" |
|
1 | """The IPython HTML Notebook""" | |
2 |
|
2 | |||
3 | # check for tornado 2.1.0 |
|
3 | # check for tornado 2.1.0 | |
4 | msg = "The IPython Notebook requires tornado >= 2.1.0" |
|
4 | msg = "The IPython Notebook requires tornado >= 2.1.0" | |
5 | try: |
|
5 | try: | |
6 | import tornado |
|
6 | import tornado | |
7 | except ImportError: |
|
7 | except ImportError: | |
8 | raise ImportError(msg) |
|
8 | raise ImportError(msg) | |
9 | else: |
|
9 | try: | |
10 |
if tornado.version_info |
|
10 | version_info = tornado.version_info | |
11 | raise ImportError(msg+", but you have %s"%tornado.version) |
|
11 | except AttributeError: | |
|
12 | raise ImportError(msg + ", but you have < 1.1.0") | |||
|
13 | if version_info < (2,1,0): | |||
|
14 | raise ImportError(msg + ", but you have %s" % tornado.version) | |||
12 | del msg |
|
15 | del msg |
General Comments 0
You need to be logged in to leave comments.
Login now