From b122b52dc5a77e578bfff3a63b3cfe841bd9f60a Mon Sep 17 00:00:00 2001 From: Min RK Date: Sat, 27 Jun 2015 20:52:15 -0700 Subject: [PATCH] handle _template_path being unicode on py2 check string_types instead of str --- notebook/notebookapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/notebookapp.py b/notebook/notebookapp.py index 4503eee60..0287b0d97 100644 --- a/notebook/notebookapp.py +++ b/notebook/notebookapp.py @@ -155,7 +155,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]