Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhatelmas committed Jan 18, 2022
1 parent d218179 commit ff10fcc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stream/feed.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, client, feed_slug, user_id, token):
self.slug = feed_slug
self.user_id = str(user_id)
self.id = "%s:%s" % (feed_slug, user_id)
self.token = token.decode('utf-8') if isinstance(token, bytes) else token
self.token = token.decode("utf-8") if isinstance(token, bytes) else token

self.feed_url = "feed/%s/" % self.id.replace(":", "/")
self.enriched_feed_url = "enrich/feed/%s/" % self.id.replace(":", "/")
Expand Down
4 changes: 2 additions & 2 deletions stream/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1704,9 +1704,9 @@ def test_follow_stats(self):
self.assertEqual(response["following"]["count"], 0)
self.assertEqual(response["followers"]["count"], 1)

def test_token_type(self):
def test_token_type(self):
"""
test to check whether token is a byte or string
test to check whether token is a byte or string
"""
with_bytes = Feed(client, "user", "1", b"token")
self.assertEqual(with_bytes.token, "token")
Expand Down

0 comments on commit ff10fcc

Please sign in to comment.