summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/ExtractArchive.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-05 19:18:11 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-05 19:18:11 +0100
commit52664e6fe8dd99fc9bb78ea8cf158c17705b6ded (patch)
tree985a5175f48a277ef56da956d24cff0220313469 /module/plugins/hooks/ExtractArchive.py
parent[UpdateManager] Fix with statement on old env like python 2.5 (diff)
downloadpyload-52664e6fe8dd99fc9bb78ea8cf158c17705b6ded.tar.xz
Fix with statement on old env like python 2.5 (2)
Diffstat (limited to 'module/plugins/hooks/ExtractArchive.py')
-rw-r--r--module/plugins/hooks/ExtractArchive.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hooks/ExtractArchive.py b/module/plugins/hooks/ExtractArchive.py
index 11c44a6d1..07db13aa1 100644
--- a/module/plugins/hooks/ExtractArchive.py
+++ b/module/plugins/hooks/ExtractArchive.py
@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-
+from __future__ import with_statement
+
import os
import sys
@@ -57,7 +59,7 @@ from module.utils import save_join, fs_encode
class ExtractArchive(Hook):
__name__ = "ExtractArchive"
__type__ = "hook"
- __version__ = "0.17"
+ __version__ = "0.18"
__config__ = [("activated", "bool", "Activated", True),
("fullpath", "bool", "Extract full path", True),