From 55ffc1c083eebc85768c8035e63baf1d5cb6cbfd Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Thu, 18 Aug 2011 19:31:16 -0700 Subject: [PATCH] Move glob to global level import. --- IPython/frontend/html/notebook/notebookmanager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/IPython/frontend/html/notebook/notebookmanager.py b/IPython/frontend/html/notebook/notebookmanager.py index da0b455c7..4e504ea38 100644 --- a/IPython/frontend/html/notebook/notebookmanager.py +++ b/IPython/frontend/html/notebook/notebookmanager.py @@ -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]