From 7323a829ab2a09ad9e5f1f4072c1b46cba280fb8 2015-06-28 03:54:45 From: Min RK Date: 2015-06-28 03:54:45 Subject: [PATCH] handle _template_path being unicode on py2 check string_types instead of str --- diff --git a/IPython/html/notebookapp.py b/IPython/html/notebookapp.py index a107527..0464144 100644 --- a/IPython/html/notebookapp.py +++ b/IPython/html/notebookapp.py @@ -154,7 +154,7 @@ class NotebookWebApplication(web.Application): "template_path", ipython_app.template_file_path, ) - if isinstance(_template_path, str): + if isinstance(_template_path, py3compat.string_types): _template_path = (_template_path,) template_path = [os.path.expanduser(path) for path in _template_path]