svn keywords
[plcapi.git] / PLC / Debug.py
index ccd7db7..2cdac8c 100644 (file)
@@ -1,3 +1,5 @@
+# $Id$
+# $URL$
 import time
 import sys
 import syslog
@@ -46,8 +48,9 @@ def profile(callable):
     return wrapper
 
 if __name__ == "__main__":
-    @profile
     def sleep(seconds = 1):
         time.sleep(seconds)
 
+    sleep = profile(sleep)
+
     sleep(1)