summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/UnRar.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-24 06:55:49 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-07-24 06:55:49 +0200
commit94d017cd2a5c1f194960827a8c7e46afc3682008 (patch)
treee06f2d20d6c4cfa2cefb446c3b266cc3c1aa4e69 /module/plugins/internal/UnRar.py
parentHotfixes (diff)
downloadpyload-94d017cd2a5c1f194960827a8c7e46afc3682008.tar.xz
Hotfixes (2)
Diffstat (limited to 'module/plugins/internal/UnRar.py')
-rw-r--r--module/plugins/internal/UnRar.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/internal/UnRar.py b/module/plugins/internal/UnRar.py
index 1a2e64b94..90b6431ab 100644
--- a/module/plugins/internal/UnRar.py
+++ b/module/plugins/internal/UnRar.py
@@ -23,7 +23,7 @@ def renice(pid, value):
class UnRar(Extractor):
__name__ = "UnRar"
__version__ = "1.22"
- __status__ = "stable"
+ __status__ = "testing"
__description__ = """Rar extractor plugin"""
__license__ = "GPLv3"
@@ -51,7 +51,7 @@ class UnRar(Extractor):
@classmethod
def find(cls):
try:
- if os.name == "nt":
+ if os.name is "nt":
cls.CMD = os.path.join(pypath, "RAR.exe")
else:
cls.CMD = "rar"
@@ -63,7 +63,7 @@ class UnRar(Extractor):
except OSError:
try:
- if os.name == "nt":
+ if os.name is "nt":
cls.CMD = os.path.join(pypath, "UnRAR.exe")
else:
cls.CMD = "unrar"
@@ -134,7 +134,7 @@ class UnRar(Extractor):
if not c:
break
#: Reading a percentage sign -> set progress and restart
- if c == '%':
+ if c is '%':
self.notify_progress(int(s))
s = ""
#: Not reading a digit -> therefore restart
@@ -180,7 +180,7 @@ class UnRar(Extractor):
#: eventually Multipart Files
files.extend(fs_join(dir, os.path.basename(file)) for file in filter(self.is_multipart, os.listdir(dir))
- if re.sub(self.re_multipart, ".rar", name) == re.sub(self.re_multipart, ".rar", file))
+ if re.sub(self.re_multipart, ".rar", name) is re.sub(self.re_multipart, ".rar", file))
return files