From dd451c1861f22bb2cd3683304d7ca0b8023f9c1a Mon Sep 17 00:00:00 2001 From: ehengao Date: Thu, 8 Feb 2018 01:26:31 -0600 Subject: [PATCH] Add _ from module to fix the not imported error --- notebook/services/contents/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notebook/services/contents/manager.py b/notebook/services/contents/manager.py index df2eaa638..df59ae7c0 100644 --- a/notebook/services/contents/manager.py +++ b/notebook/services/contents/manager.py @@ -31,6 +31,7 @@ from traitlets import ( ) from ipython_genutils.py3compat import string_types from notebook.base.handlers import IPythonHandler +from notebook.transutils import _ copy_pat = re.compile(r'\-Copy\d*\.') @@ -70,7 +71,7 @@ class ContentsManager(LoggingConfigurable): Glob patterns to hide in file and directory listings. """) - untitled_notebook = Unicode("Untitled", config=True, + untitled_notebook = Unicode(_("Untitled"), config=True, help="The base name used when creating untitled notebooks." )