Skip to content

Commit 64716e5

Browse files
committed
2.7 fix by zifter
1 parent 0c09469 commit 64716e5

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

vk_api/vk_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# -*- coding: utf-8 -*-
22
"""
33
@author: Kirill Python
44
@contact: https://vk.com/python273
@@ -453,7 +453,7 @@ def method(self, method, values=None, captcha_sid=None, captcha_key=None, raw=Fa
453453
return response if raw else response['response']
454454

455455

456-
class VkApiMethod:
456+
class VkApiMethod(object):
457457

458458
def __init__(self, vk, method=None):
459459
self._vk = vk

vk_api/vk_audio.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@ def get(self, **kwargs):
1414
response = self._vk.http.get('https://m.vk.com/audios{}'.format(kwargs['owner_id']),
1515
params={'offset': kwargs.get('offset', 0)},
1616
allow_redirects=False)
17-
1817
if response.text == '':
1918
raise AccessRightsError("You dont have permissions to browse {}'s audios".format(kwargs['owner_id']))
20-
2119
return scrap_data(response.text)
2220

2321
def search(self, **kwargs):

0 commit comments

Comments
 (0)