From f8cf65d4271254dd89662cb6190adc5b426c6d2b Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 12 May 2015 02:44:03 +0200 Subject: 'from time' -> 'import time' and so on... (2) --- pyload/plugin/hoster/MegaCoNz.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pyload/plugin/hoster') diff --git a/pyload/plugin/hoster/MegaCoNz.py b/pyload/plugin/hoster/MegaCoNz.py index 2d7b40d98..2e6735ee6 100644 --- a/pyload/plugin/hoster/MegaCoNz.py +++ b/pyload/plugin/hoster/MegaCoNz.py @@ -1,13 +1,12 @@ # -*- coding: utf-8 -*- import array +import base64 import os # import pycurl import random import re -from base64 import standard_b64decode - from Crypto.Cipher import AES from Crypto.Util import Counter @@ -64,7 +63,7 @@ class MegaCoNz(Hoster): def b64_decode(self, data): data = data.replace("-", "+").replace("_", "/") - return standard_b64decode(data + '=' * (-len(data) % 4)) + return base64.standard_b64decode(data + '=' * (-len(data) % 4)) def getCipherKey(self, key): -- cgit v1.2.3