Skip to content

Commit 4656cdf

Browse files
committed
Prefer six instead of future, as it is more obvious without resorting to installing global names
1 parent 7f62cb2 commit 4656cdf

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
author_email = 'team@swiftype.com',
1313
url = 'https://swiftype.com/',
1414
packages = find_packages(),
15-
install_requires = ["anyjson", "future==0.16.0"],
15+
install_requires = ["anyjson", "six"],
1616
test_suite='nose.collector',
1717
classifiers = [
1818
'Intended Audience :: Developers',

swiftype/swiftype.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
from __future__ import unicode_literals
22

3-
from future.standard_library import install_aliases
4-
install_aliases()
5-
6-
import anyjson
73
import base64
84
import time
95
import hashlib
10-
from urllib.parse import urlparse, urlunparse, urlencode
6+
7+
import anyjson
8+
from six.moves.urllib_parse import urlunparse, urlencode
119

1210
try:
1311
# VCRpy only works when `httplib` is imported directly on Python 2.x

tests/test_swiftype.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import time
44
import unittest2 as unittest
5-
from urllib.parse import urlparse, parse_qs
5+
from six.moves.urllib_parse import urlparse, parse_qs
66
import vcr
77
from mock import Mock
88

0 commit comments

Comments
 (0)