Permalink
Browse files

Move glob to global level import.

  • Loading branch information...
1 parent a2b246f commit 0e2ee7f3772004043292956e86dcd0c8a6a12c42 @stefanv committed Aug 19, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 IPython/frontend/html/notebook/notebookmanager.py
@@ -19,6 +19,7 @@
import datetime
import os
import uuid
+import glob
from tornado import web
@@ -52,8 +53,6 @@ def list_notebooks(self):
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]

0 comments on commit 0e2ee7f

Please sign in to comment.