Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

#7 fix "ImportError: No module named request" error #8

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#7 'urllib.request' modules have been deprecated, 'urllib.request.url…
…retrieve' should be 'urllib.urlretrieve'
  • Loading branch information
ablecao committed Jan 19, 2018
commit 0591ddd85c01e2093b463edacd9ac219ac88f3a5
5 changes: 4 additions & 1 deletion face-generation/helper.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import math
import os
import hashlib
from urllib.request import urlretrieve
try:
from urllib.request import urlretrieve
except ImportError:
from urllib import urlretrieve
import zipfile
import gzip
import shutil