Skip to content

Commit 73a44a7

Browse files
committed
remove deepcopy
1 parent aed77b6 commit 73a44a7

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

resources/lib/twitch/queries.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
from six.moves.urllib.parse import urljoin
44

5-
from copy import deepcopy
6-
75
from . import CLIENT_ID, OAUTH_TOKEN, APP_TOKEN
86
from .exceptions import ResourceUnavailableException
97
from .log import log, prep_log_message
@@ -18,8 +16,6 @@
1816
_uploads_baseurl = 'https://uploads.twitch.tv/'
1917
_oauth_baseurl = 'https://api.twitch.tv/kraken/oauth2/'
2018

21-
_v5_headers = {'ACCEPT': 'application/vnd.twitchtv.v5+json'}
22-
2319

2420
class _Query(object):
2521
def __init__(self, url, headers={}, data={}, method=methods.GET):
@@ -184,7 +180,8 @@ def __init__(self, path, headers={}, data={}, method=methods.PUT):
184180

185181
class V5Query(ApiQuery):
186182
def __init__(self, path, use_token=True, method=methods.GET):
187-
super(V5Query, self).__init__(path, deepcopy(_v5_headers), use_token=use_token, method=method)
183+
headers = {'ACCEPT': 'application/vnd.twitchtv.v5+json'}
184+
super(V5Query, self).__init__(path, headers, use_token=use_token, method=method)
188185

189186

190187
class HelixQuery(HelixApiQuery):

0 commit comments

Comments
 (0)