diff options
author | 2015-03-07 18:33:23 +0100 | |
---|---|---|
committer | 2015-03-07 18:33:23 +0100 | |
commit | 3551cd44c7fad9cf5159d5920b6e8ec7aa3d1b9b (patch) | |
tree | 8b3b2dfad2ba828d5dfb40eaaece76e18a771d66 /module/plugins/internal/SevenZip.py | |
parent | [AntiVirus] Fix quarantine file moving (diff) | |
download | pyload-3551cd44c7fad9cf5159d5920b6e8ec7aa3d1b9b.tar.xz |
Spare code cosmetics
Diffstat (limited to 'module/plugins/internal/SevenZip.py')
-rw-r--r-- | module/plugins/internal/SevenZip.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/module/plugins/internal/SevenZip.py b/module/plugins/internal/SevenZip.py index b5b113566..82901f8cc 100644 --- a/module/plugins/internal/SevenZip.py +++ b/module/plugins/internal/SevenZip.py @@ -2,8 +2,7 @@ import os import re - -from subprocess import Popen, PIPE +import subprocess from module.plugins.internal.UnRar import ArchiveError, CRCError, PasswordError, UnRar, renice from module.utils import fs_encode, save_join @@ -41,10 +40,10 @@ class SevenZip(UnRar): def isUsable(cls): if os.name == "nt": cls.CMD = os.path.join(pypath, "7z.exe") - p = Popen([cls.CMD], stdout=PIPE, stderr=PIPE) + p = subprocess.Popen([cls.CMD], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out,err = p.communicate() else: - p = Popen([cls.CMD], stdout=PIPE, stderr=PIPE) + p = subprocess.Popen([cls.CMD], stdout=subprocess.PIPE, stderr=subprocess.PIPE) out, err = p.communicate() m = cls.re_version.search(out) @@ -150,5 +149,5 @@ class SevenZip(UnRar): self.manager.logDebug(" ".join(call)) - p = Popen(call, stdout=PIPE, stderr=PIPE) + p = subprocess.Popen(call, stdout=subprocess.PIPE, stderr=subprocess.PIPE) return p |