From a78ce4c3b068511818708a5d42eb006bd0742a6a Mon Sep 17 00:00:00 2001
From: Matthew Johnson <mattjj@csail.mit.edu>
Date: Mon, 6 Feb 2017 18:55:25 -0800
Subject: [PATCH] attempt to fix python 3.4 urlretrieve import

---
 .travis.yml | 1 +
 setup.py    | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/.travis.yml b/.travis.yml
index e88eb34..85c2174 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -2,6 +2,7 @@ sudo: false
 language: python
 python:
     - "2.7"
+    - "3.4"
 notifications:
     email: false
 addons:
diff --git a/setup.py b/setup.py
index 3673c63..b6afa30 100644
--- a/setup.py
+++ b/setup.py
@@ -8,10 +8,13 @@ from warnings import warn
 import os
 import sys
 from glob import glob
-from future.moves.urllib.request import urlretrieve
 import tarfile
 import shutil
 
+from future.standard_library import install_aliases
+install_aliases()
+from urllib.request import urlretrieve
+
 # use cython if we can import it successfully
 try:
     from Cython.Distutils import build_ext as _build_ext
-- 
GitLab