From d9ea19b009e35387740e598fdad9f5de0f2afc59 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 31 Aug 2010 16:01:06 +0200 Subject: cleanup --- module/plugins/Plugin.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'module/plugins/Plugin.py') diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 8049da33f..ed9ac8bca 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -18,7 +18,6 @@ """ import logging -from os.path import exists from os.path import join from time import time @@ -32,7 +31,6 @@ from os.path import exists from os import remove from os import makedirs -from tempfile import NamedTemporaryFile from mimetypes import guess_type from itertools import islice @@ -202,8 +200,7 @@ class Plugin(object): """ loads the catpcha and decrypt it or ask the user for input """ content = self.load(url, get=get, post=post, cookies=cookies) - - temp = NamedTemporaryFile() + temp = open(join("tmp","tmpCaptcha_%s" % self.__name__ ), "wb") temp.write(content) -- cgit v1.2.3