diff options
author | kennyballou <kballou@onyx.boisestate.edu> | 2012-10-16 13:43:23 -0600 |
---|---|---|
committer | kballou <kballou@onyx.boisestate.edu> | 2012-10-16 13:43:23 -0600 |
commit | fd43ff5bb12f92740a4caa575353acb90d2822cb (patch) | |
tree | be05abf532e32e47e23f33b4002f372620030ff9 /xnt/__init__.py | |
parent | 18b0c134f2172f37b321766c51e2df7b40f7ae0c (diff) | |
download | xnt-fd43ff5bb12f92740a4caa575353acb90d2822cb.tar.gz xnt-fd43ff5bb12f92740a4caa575353acb90d2822cb.tar.xz |
Add `target` decorator
Diffstat (limited to 'xnt/__init__.py')
-rw-r--r-- | xnt/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xnt/__init__.py b/xnt/__init__.py index e69de29..14d4c4d 100644 --- a/xnt/__init__.py +++ b/xnt/__init__.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python + +def target(fn): + def wrap(): + print(fn.__name__ + ":") + return fn() + return wrap |