summaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authormichele.simionato <devnull@localhost>2008-12-14 06:13:49 +0000
committermichele.simionato <devnull@localhost>2008-12-14 06:13:49 +0000
commite422ac2ebb8a038babc2fb41ab1a8c5aba374be0 (patch)
tree415575ff65ef2fa503c336483af3875d606136ef /util.py
parente8ebd10028020ff8f864aa8dcf2855693e593b30 (diff)
downloadpython-decorator-git-e422ac2ebb8a038babc2fb41ab1a8c5aba374be0.tar.gz
Published version of decorator 3.0
Diffstat (limited to 'util.py')
-rwxr-xr-xutil.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/util.py b/util.py
deleted file mode 100755
index 80e9037..0000000
--- a/util.py
+++ /dev/null
@@ -1,14 +0,0 @@
-"""
-A few useful decorators
-"""
-
-import sys, time
-from decorator import decorator
-
-@decorator
-def traced(func, *args, **kw):
- t1 = time.time()
- res = func(*args,**kw)
- t2 = time.time()
- print >> sys.stderr, func.__name__, args, 'TIME:', t2-t1
- return res