From 5060e4c6374a5116d0d8b02528f910f8c5f8bcf9 Mon Sep 17 00:00:00 2001 From: Walter Purcaro Date: Tue, 15 Jul 2014 16:25:41 +0200 Subject: Fix code indentation, some bad whitespaces and missing authors + use 'not' instead 'is None' + replace __pattern__'s r" with r' + other minor cosmetics --- module/plugins/Hook.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'module/plugins/Hook.py') diff --git a/module/plugins/Hook.py b/module/plugins/Hook.py index 6f5abffed..b9c7b832f 100644 --- a/module/plugins/Hook.py +++ b/module/plugins/Hook.py @@ -22,6 +22,7 @@ from traceback import print_exc from Plugin import Base + class Expose(object): """ used for decoration to declare rpc services """ @@ -29,11 +30,14 @@ class Expose(object): hookManager.addRPC(f.__module__, f.func_name, f.func_doc) return f + def threaded(f): + def run(*args,**kwargs): hookManager.startThread(f, *args, **kwargs) return run + class Hook(Base): """ Base class for hook plugins. -- cgit v1.2.3