Skip to content

Commit

Permalink
Move glob to global level import.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanv committed Aug 19, 2011
1 parent a2b246f commit 0e2ee7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions IPython/frontend/html/notebook/notebookmanager.py
Expand Up @@ -19,6 +19,7 @@
import datetime import datetime
import os import os
import uuid import uuid
import glob


from tornado import web from tornado import web


Expand Down Expand Up @@ -52,8 +53,6 @@ def list_notebooks(self):
dict(notebook_id=notebook,name=name) dict(notebook_id=notebook,name=name)
""" """
import glob

names = glob.glob(os.path.join(self.notebook_dir, names = glob.glob(os.path.join(self.notebook_dir,
'*' + self.filename_ext)) '*' + self.filename_ext))
names = [os.path.splitext(os.path.basename(name))[0] names = [os.path.splitext(os.path.basename(name))[0]
Expand Down

0 comments on commit 0e2ee7f

Please sign in to comment.