Skip to content

Commit 592ca46

Browse files
committed
moving to travis from circleci
1 parent 3cac635 commit 592ca46

5 files changed

Lines changed: 21 additions & 10 deletions

File tree

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: python
2+
python:
3+
- 2.6
4+
- 2.7
5+
- 3.3
6+
- 3.4
7+
notifications:
8+
email:
9+
10+
after_success:
11+
- coveralls

circle.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

setup.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
install_requires = [
3030
'requests>=2.3.0',
31+
'six>=1.8.0'
3132
]
3233

3334

@@ -68,8 +69,11 @@ def run_tests(self):
6869
'Development Status :: 5 - Production/Stable',
6970
'License :: OSI Approved :: GNU General Public License (GPL)',
7071
'Natural Language :: English',
71-
'Programming Language :: Python',
72-
'Topic :: Scientific/Engineering :: Mathematics',
72+
'Programming Language :: Python :: 2.6',
73+
'Programming Language :: Python :: 2.7',
74+
'Programming Language :: Python :: 3',
75+
'Programming Language :: Python :: 3.3',
76+
'Programming Language :: Python :: 3.4',
7377
'Topic :: Software Development :: Libraries :: Python Modules',
7478
],
7579
)

stream/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def _make_request(self, method, relative_url, signature, params=None, data=None)
9393
params=default_params, timeout=self.timeout)
9494
logger.debug('stream api call %s, headers %s data %s',
9595
response.url, headers, data)
96-
result = serializer.loads(response.content)
96+
result = serializer.loads(response.text)
9797
if result.get('exception'):
9898
self.raise_exception(result, status_code=response.status_code)
9999
return result

stream/serializer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Adds the ability to send date and datetime objects to the API
66
The date and datetime formats from the API are automatically supported and parsed
77
'''
8+
import six
89

910

1011
def _datetime_encoder(obj):
@@ -13,15 +14,15 @@ def _datetime_encoder(obj):
1314

1415

1516
def _datetime_decoder(dict_):
16-
for key, value in dict_.iteritems():
17+
for key, value in dict_.items():
1718
# The built-in `json` library will `unicode` strings, except for empty
1819
# strings which are of type `str`. `jsondate` patches this for
1920
# consistency so that `unicode` is always returned.
2021
if value == '':
2122
dict_[key] = u''
2223
continue
2324

24-
if value is not None and isinstance(value, basestring):
25+
if value is not None and isinstance(value, six.string_types):
2526
try:
2627
# The api always returns times like this
2728
# 2014-07-25T09:12:24.735

0 commit comments

Comments
 (0)