summaryrefslogtreecommitdiffstats
path: root/module/plugins/Plugin.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-31 16:01:06 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-08-31 16:01:06 +0200
commitd9ea19b009e35387740e598fdad9f5de0f2afc59 (patch)
tree6e3c301aceb2aa67f5e4c9d56857027e9bf056da /module/plugins/Plugin.py
parentlittle fixes (diff)
downloadpyload-d9ea19b009e35387740e598fdad9f5de0f2afc59.tar.xz
cleanup
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r--module/plugins/Plugin.py5
1 files changed, 1 insertions, 4 deletions
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)