Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ff10fcc

Browse files
committed
Fix lint
1 parent d218179 commit ff10fcc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stream/feed.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def __init__(self, client, feed_slug, user_id, token):
2020
self.slug = feed_slug
2121
self.user_id = str(user_id)
2222
self.id = "%s:%s" % (feed_slug, user_id)
23-
self.token = token.decode('utf-8') if isinstance(token, bytes) else token
23+
self.token = token.decode("utf-8") if isinstance(token, bytes) else token
2424

2525
self.feed_url = "feed/%s/" % self.id.replace(":", "/")
2626
self.enriched_feed_url = "enrich/feed/%s/" % self.id.replace(":", "/")

stream/tests/test_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1704,9 +1704,9 @@ def test_follow_stats(self):
17041704
self.assertEqual(response["following"]["count"], 0)
17051705
self.assertEqual(response["followers"]["count"], 1)
17061706

1707-
def test_token_type(self):
1707+
def test_token_type(self):
17081708
"""
1709-
test to check whether token is a byte or string
1709+
test to check whether token is a byte or string
17101710
"""
17111711
with_bytes = Feed(client, "user", "1", b"token")
17121712
self.assertEqual(with_bytes.token, "token")

0 commit comments

Comments
 (0)