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