handle _template_path being unicode on py2

check string_types instead of str
Min RK 11 years ago
parent 3ee4efdc5d
commit b122b52dc5

@ -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]

Loading…
Cancel
Save