summaryrefslogtreecommitdiffstats
path: root/module/pyunrar.py
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-08-13 11:03:44 +0200
committerGravatar Jeix <devnull@localhost> 2010-08-13 11:03:44 +0200
commitb1cc10a0f5ea6c9cb8231c67dd016fe4a2414170 (patch)
treeaf31f7d3c6efb49a2afe905d4971001417299c03 /module/pyunrar.py
parentirchook-xmlrpc fix (diff)
parentimprovements (diff)
downloadpyload-b1cc10a0f5ea6c9cb8231c67dd016fe4a2414170.tar.xz
Merge
Diffstat (limited to 'module/pyunrar.py')
-rw-r--r--module/pyunrar.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/pyunrar.py b/module/pyunrar.py
index 4db3c3a19..6bb240965 100644
--- a/module/pyunrar.py
+++ b/module/pyunrar.py
@@ -270,7 +270,7 @@ class Unrar():
if overwrite:
try:
remove(abspath(join(destination, sf[0])))
- except OSError as e:
+ except OSError, e:
if not e.errno == 2:
raise e
f = sf[0]
@@ -278,7 +278,7 @@ class Unrar():
if fullPath:
try:
makedirs(dirname(join(abspath(destination), sf[0])))
- except OSError as e:
+ except OSError, e:
if not e.errno == 17:
raise e
d = join(destination, dirname(f))