Skip to content

Commit

Permalink
Merge pull request #73 from hamelsmu/hamel-patch-3
Browse files Browse the repository at this point in the history
Fix minor error in else statement
  • Loading branch information
sgugger authored Jan 30, 2020
2 parents 9e3c9cf + abd6937 commit c420a89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nbdev/export2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def notebook2html(fname=None, force_all=False, n_workers=None, cls=HTMLExporter,
"Convert all notebooks matching `fname` to html files"
if fname is None:
files = [f for f in Config().nbs_path.glob('*.ipynb') if not f.name.startswith('_')]
else: files = glob.glob(fname)
else: files = list(p.parent.glob(p.name))
if len(files)==1:
force_all = True
if n_workers is None: n_workers=0
Expand Down
2 changes: 1 addition & 1 deletion nbs/03_export2html.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,7 @@
" \"Convert all notebooks matching `fname` to html files\"\n",
" if fname is None: \n",
" files = [f for f in Config().nbs_path.glob('*.ipynb') if not f.name.startswith('_')]\n",
" else: files = glob.glob(fname)\n",
" else: files = list(p.parent.glob(p.name))\n",
" if len(files)==1:\n",
" force_all = True\n",
" if n_workers is None: n_workers=0\n",
Expand Down

0 comments on commit c420a89

Please # to comment.