mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-30 12:11:32 +08:00
Move glob to global level import.
This commit is contained in:
parent
fb2c31b2ea
commit
55ffc1c083
@ -19,6 +19,7 @@ Authors:
|
||||
import datetime
|
||||
import os
|
||||
import uuid
|
||||
import glob
|
||||
|
||||
from tornado import web
|
||||
|
||||
@ -52,8 +53,6 @@ class NotebookManager(LoggingConfigurable):
|
||||
|
||||
dict(notebook_id=notebook,name=name)
|
||||
"""
|
||||
import glob
|
||||
|
||||
names = glob.glob(os.path.join(self.notebook_dir,
|
||||
'*' + self.filename_ext))
|
||||
names = [os.path.splitext(os.path.basename(name))[0]
|
||||
|
Loading…
Reference in New Issue
Block a user