summaryrefslogtreecommitdiffstats
path: root/pyload/api/__init__.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 02:44:03 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-12 03:22:38 +0200
commitf8cf65d4271254dd89662cb6190adc5b426c6d2b (patch)
tree3197abaa2f3a7f1fdc4f2edcd1844087780c066a /pyload/api/__init__.py
parent'from time' -> 'import time' and so on... (diff)
downloadpyload-f8cf65d4271254dd89662cb6190adc5b426c6d2b.tar.xz
'from time' -> 'import time' and so on... (2)
Diffstat (limited to 'pyload/api/__init__.py')
-rw-r--r--pyload/api/__init__.py5
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)