Skip to content

Commit 5b3120b

Browse files
author
Mark
committed
Fix unlink to conform to 3.6
1 parent 30065b6 commit 5b3120b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nbs/06_docments.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,10 @@
822822
" 'return': None,\n",
823823
" 'weight': 'The weight of the person'}\n",
824824
"assert tst_dict == docments(person.Person)\n",
825-
"tmp.unlink(missing_ok=True)"
825+
"try: # to conform to python 3.6\n",
826+
" tmp.unlink()\n",
827+
"except FileNotFoundError:\n",
828+
" pass"
826829
]
827830
},
828831
{

0 commit comments

Comments
 (0)