summaryrefslogtreecommitdiffstats
path: root/pyload/api/__init__.py
diff options
context:
space:
mode:
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)