diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 02:44:03 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-05-12 03:22:38 +0200 |
commit | f8cf65d4271254dd89662cb6190adc5b426c6d2b (patch) | |
tree | 3197abaa2f3a7f1fdc4f2edcd1844087780c066a /pyload/api/__init__.py | |
parent | 'from time' -> 'import time' and so on... (diff) | |
download | pyload-f8cf65d4271254dd89662cb6190adc5b426c6d2b.tar.xz |
'from time' -> 'import time' and so on... (2)
Diffstat (limited to 'pyload/api/__init__.py')
-rw-r--r-- | pyload/api/__init__.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyload/api/__init__.py b/pyload/api/__init__.py index 01586bc4a..55c21572f 100644 --- a/pyload/api/__init__.py +++ b/pyload/api/__init__.py @@ -3,13 +3,12 @@ from __future__ import with_statement +import base64 import os import re import time import urlparse -from base64 import standard_b64encode - from pyload.Datatype import PyFile from pyload.utils.packagetools import parseNames from pyload.network.RequestFactory import getURL @@ -821,7 +820,7 @@ class Api(Iface): if task: task.setWatingForUser(exclusive=exclusive) data, type, result = task.getCaptcha() - ctask = CaptchaTask(int(task.id), standard_b64encode(data), type, result) + ctask = CaptchaTask(int(task.id), base64.standard_b64encode(data), type, result) return ctask return CaptchaTask(-1) |