Skip to content

Commit 3629a8d

Browse files
authored
Merge pull request #769 from seemab-yamin/fix-net-urlretrieve-tempfile-import
fix urlretrieve NameError by importing tempfile
2 parents 2cbb9fa + efd37bf commit 3629a8d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

fastcore/net.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from .parallel import *
2323

2424
from functools import wraps
25-
import json,urllib,contextlib
25+
import json,urllib,contextlib,tempfile
2626
import socket,urllib.request,http,urllib
2727
from contextlib import contextmanager,ExitStack
2828
from urllib.request import Request,urlretrieve,install_opener,HTTPErrorProcessor,HTTPRedirectHandler

nbs/03b_net.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"from fastcore.parallel import *\n",
2323
"\n",
2424
"from functools import wraps\n",
25-
"import json,urllib,contextlib\n",
25+
"import json,urllib,contextlib,tempfile\n",
2626
"import socket,urllib.request,http,urllib\n",
2727
"from contextlib import contextmanager,ExitStack\n",
2828
"from urllib.request import Request,urlretrieve,install_opener,HTTPErrorProcessor,HTTPRedirectHandler\n",

0 commit comments

Comments
 (0)