From 07b83a5e0923ac0893dff49446fdc2968c9c5c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Geron?= Date: Sat, 12 Oct 2019 16:29:54 +0930 Subject: [PATCH] Import urllib directly instead of from six.moves, as we move away from Python 2 --- 02_end_to_end_machine_learning_project.ipynb | 4 ++-- 03_classification.ipynb | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/02_end_to_end_machine_learning_project.ipynb b/02_end_to_end_machine_learning_project.ipynb index dc660a7..79bee1d 100644 --- a/02_end_to_end_machine_learning_project.ipynb +++ b/02_end_to_end_machine_learning_project.ipynb @@ -87,7 +87,7 @@ "source": [ "import os\n", "import tarfile\n", - "from six.moves import urllib\n", + "import urllib\n", "\n", "DOWNLOAD_ROOT = \"https://raw.githubusercontent.com/ageron/handson-ml2/master/\"\n", "HOUSING_PATH = os.path.join(\"datasets\", \"housing\")\n", @@ -2146,7 +2146,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.8" + "version": "3.7.4" }, "nav_menu": { "height": "279px", diff --git a/03_classification.ipynb b/03_classification.ipynb index 0e7545d..2c2200c 100644 --- a/03_classification.ipynb +++ b/03_classification.ipynb @@ -1880,7 +1880,7 @@ "source": [ "import os\n", "import tarfile\n", - "from six.moves import urllib\n", + "import urllib\n", "\n", "DOWNLOAD_ROOT = \"http://spamassassin.apache.org/old/publiccorpus/\"\n", "HAM_URL = DOWNLOAD_ROOT + \"20030228_easy_ham.tar.bz2\"\n", @@ -2522,7 +2522,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.8" + "version": "3.7.4" }, "nav_menu": {}, "toc": {