Skip to content

Commit 5de030a

Browse files
committed
fix the version
1 parent 70cddff commit 5de030a

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.travis.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ notifications:
88
email:
99
- thierryschellenbach@gmail.com
1010
install:
11-
- pip install pep8 --use-mirrors
11+
- pip install pep8==1.5.7 --use-mirrors
1212
- pip install python-coveralls --use-mirrors
1313
- pip install -e .
1414
before_script:

‎stream/serializer.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
'''
99

1010

11-
1211
def _datetime_encoder(obj):
1312
if isinstance(obj, (datetime.datetime, datetime.date)):
1413
return obj.isoformat()

‎stream/signing.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ def sign(api_secret, feed_id):
1919
2020
'''
2121
hashed_secret = hashlib.sha1((api_secret).encode('utf-8')).digest()
22-
signed = hmac.new(hashed_secret, msg=feed_id.encode('utf8'), digestmod=hashlib.sha1)
22+
signed = hmac.new(
23+
hashed_secret, msg=feed_id.encode('utf8'), digestmod=hashlib.sha1)
2324
digest = signed.digest()
2425
urlsafe_digest = b64_encode(digest)
2526
token = urlsafe_digest.decode('ascii')

‎stream/utils.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
def validate_feed(feed_id):
44
'''
55
Validates the input is in the format of user:1
6-
6+
77
:param feed_id: a feed such as user:1
8-
8+
99
Raises ValueError if the format doesnt match
1010
'''
1111
if len(feed_id.split(':')) != 2:

0 commit comments

Comments
 (0)