diff options
author | mrDoctorWho <mrdoctorwho@gmail.com> | 2014-06-12 00:15:53 +0400 |
---|---|---|
committer | mrDoctorWho <mrdoctorwho@gmail.com> | 2014-06-12 00:15:53 +0400 |
commit | 2b8762741bee185f088f157108a96f83a6a823e6 (patch) | |
tree | fad1b3e66a7db289e6506263dfe7d805e786c293 /library/vkapi.py | |
parent | 58d81c8af25ca7e6d18f1a1894b019bd22ef1e0e (diff) |
Fixed #61, a little
Diffstat (limited to 'library/vkapi.py')
-rw-r--r-- | library/vkapi.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/library/vkapi.py b/library/vkapi.py index 86902e1..607d5e9 100644 --- a/library/vkapi.py +++ b/library/vkapi.py @@ -135,8 +135,6 @@ class RequestProcessor(object): return AsyncHTTPRequest(url).open() - - class APIBinding: def __init__(self, number=None, password=None, token=None, app_id=3789129, scope=69638): @@ -175,7 +173,7 @@ class APIBinding: if "security_check" in response.url: # This code should be rewritten! Users from another countries can have problems because of it! - hash = webtools.regexp(r"security_check.*?hash: '(.*?)'\};", body)[0] + hash = re.search(r"security_check.*?hash: '(.*?)'\};", body).group(0) code = self.number[2:-2] if len(self.number) == 12: if not self.number.startswith("+"): |