From e903297a15b478aad88404d593189c8246fba7bb Mon Sep 17 00:00:00 2001 From: MinRK Date: Thu, 13 Feb 2014 19:38:16 -0800 Subject: [PATCH] clarify with all in check_nbextension --- IPython/html/nbextensions.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/IPython/html/nbextensions.py b/IPython/html/nbextensions.py index 884308d8a..2aa9dc5c6 100644 --- a/IPython/html/nbextensions.py +++ b/IPython/html/nbextensions.py @@ -75,11 +75,7 @@ def check_nbextension(files, ipython_dir=None): # one file given, turn it into a list files = [files] - for file in files: - if not os.path.exists(pjoin(nbext, file)): - return False - - return True + return all(os.path.exists(pjoin(nbext, f)) for f in files) def install_nbextension(files, overwrite=False, symlink=False, ipython_dir=None, verbose=1):