summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-15 15:13:41 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-15 15:13:41 +0200
commit1ce7f9e4e2f113e1ddcde78ba24a916a01d0fe15 (patch)
tree7510ddb4e274c56ce33e2e1c2d3a64f1596566b2 /module/plugins/internal
parentfix for last commit (diff)
downloadpyload-1ce7f9e4e2f113e1ddcde78ba24a916a01d0fe15.tar.xz
different workaround
Diffstat (limited to 'module/plugins/internal')
-rw-r--r--module/plugins/internal/UnRar.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index e2a61c678..3f27c2e9e 100644
--- a/module/plugins/internal/UnRar.py
+++ b/module/plugins/internal/UnRar.py
@@ -18,25 +18,10 @@
"""
import os
-import sys
from os.path import join
from glob import glob
-import subprocess
from subprocess import Popen, PIPE
-def _cleanup():
- for inst in subprocess._active[:]:
- res = inst._internal_poll(_deadstate=sys.maxint)
- if res is not None and res >= 0:
- try:
- subprocess._active.remove(inst)
- except ValueError:
- # This can happen if two threads create a new Popen instance.
- # It's harmless that it was already removed, so ignore.
- pass
-
-# cleanup patch for older python versions
-subprocess._cleanup = _cleanup
from module.plugins.hooks.ExtractArchive import AbtractExtractor
from module.utils import save_join, decode