diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-12-05 19:18:11 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-12-05 19:18:11 +0100 |
commit | 52664e6fe8dd99fc9bb78ea8cf158c17705b6ded (patch) | |
tree | 985a5175f48a277ef56da956d24cff0220313469 /module/plugins/hooks/HotFolder.py | |
parent | [UpdateManager] Fix with statement on old env like python 2.5 (diff) | |
download | pyload-52664e6fe8dd99fc9bb78ea8cf158c17705b6ded.tar.xz |
Fix with statement on old env like python 2.5 (2)
Diffstat (limited to 'module/plugins/hooks/HotFolder.py')
-rw-r--r-- | module/plugins/hooks/HotFolder.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hooks/HotFolder.py b/module/plugins/hooks/HotFolder.py index 518bbac2b..b0b59e2ba 100644 --- a/module/plugins/hooks/HotFolder.py +++ b/module/plugins/hooks/HotFolder.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +from __future__ import with_statement + import time from os import listdir, makedirs @@ -13,7 +15,7 @@ from module.utils import fs_encode, save_join class HotFolder(Hook): __name__ = "HotFolder" __type__ = "hook" - __version__ = "0.11" + __version__ = "0.12" __config__ = [("folder", "str", "Folder to observe", "container"), ("watch_file", "bool", "Observe link file", False), |