Import urllib directly instead of from six.moves, as we move away from Python 2

main
Aurélien Geron 2019-10-12 16:29:54 +09:30
parent f5f1ce1ca0
commit 07b83a5e09
2 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@
"source": [ "source": [
"import os\n", "import os\n",
"import tarfile\n", "import tarfile\n",
"from six.moves import urllib\n", "import urllib\n",
"\n", "\n",
"DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/ageron/handson-ml2/master/\"\n", "DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/ageron/handson-ml2/master/\"\n",
"HOUSING_PATH = os.path.join(\"datasets\", \"housing\")\n", "HOUSING_PATH = os.path.join(\"datasets\", \"housing\")\n",
@ -2146,7 +2146,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.6.8" "version": "3.7.4"
}, },
"nav_menu": { "nav_menu": {
"height": "279px", "height": "279px",

View File

@ -1880,7 +1880,7 @@
"source": [ "source": [
"import os\n", "import os\n",
"import tarfile\n", "import tarfile\n",
"from six.moves import urllib\n", "import urllib\n",
"\n", "\n",
"DOWNLOAD_ROOT = \"http://spamassassin.apache.org/old/publiccorpus/\"\n", "DOWNLOAD_ROOT = \"http://spamassassin.apache.org/old/publiccorpus/\"\n",
"HAM_URL = DOWNLOAD_ROOT + \"20030228_easy_ham.tar.bz2\"\n", "HAM_URL = DOWNLOAD_ROOT + \"20030228_easy_ham.tar.bz2\"\n",
@ -2522,7 +2522,7 @@
"name": "python", "name": "python",
"nbconvert_exporter": "python", "nbconvert_exporter": "python",
"pygments_lexer": "ipython3", "pygments_lexer": "ipython3",
"version": "3.6.8" "version": "3.7.4"
}, },
"nav_menu": {}, "nav_menu": {},
"toc": { "toc": {