From ac7454b0d55a62f23d77fefdec2ed2d3583b9391 Mon Sep 17 00:00:00 2001 From: Min RK Date: Fri, 16 Jan 2015 19:06:45 -0800 Subject: [PATCH] require terminado >= 0.3.3 for terminal handlers --- IPython/html/terminal/__init__.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/IPython/html/terminal/__init__.py b/IPython/html/terminal/__init__.py index 81803d87f..2b697e58e 100644 --- a/IPython/html/terminal/__init__.py +++ b/IPython/html/terminal/__init__.py @@ -1,4 +1,11 @@ import os + +import terminado +from IPython.utils.version import check_version + +if not check_version(terminado.__version__, '0.3.3'): + raise ImportError("terminado >= 0.3.3 required, found %s" % terminado.__version__) + from terminado import NamedTermManager from tornado.log import app_log from IPython.html.utils import url_path_join as ujoin