Skip to content

Commit 6338548

Browse files
committed
revert
1 parent e84ca6f commit 6338548

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

brawlstats/brawlapi/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ def __init__(self, token, session=None, timeout=30, is_async=False, **options):
6565
self.cache = TTLCache(540, 180) # 3 requests/sec
6666
self.ratelimit = [3, 3, 0] # per second, remaining, time until reset
6767

68-
if isinstance(token, bytes):
69-
token = token.decode('utf-8')
7068
self.headers = {
7169
'Authorization': token,
7270
'User-Agent': 'brawlstats/{0} (Python {1[0]}.{1[1]})'.format(self.api.VERSION, sys.version_info),

brawlstats/officialapi/core.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ def __init__(self, token, session=None, timeout=30, is_async=False, **options):
6565
self.cache = TTLCache(100, 300) # 20 requests/min
6666
self.ratelimit = [20, 20, 0] # per minute, remaining, time until reset
6767

68-
if isinstance(token, bytes):
69-
token = token.decode('utf-8')
7068
self.headers = {
7169
'Authorization': 'Bearer {}'.format(token),
7270
'User-Agent': 'brawlstats/{0} (Python {1[0]}.{1[1]})'.format(self.api.VERSION, sys.version_info),

0 commit comments

Comments
 (0)