From 45e3bf33ad95957b37a8b4dbacd432a78c4db23a Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Sun, 29 Oct 2006 02:35:28 +0000 Subject: [PATCH] - python 2.2 compatibility --- PLC/Debug.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PLC/Debug.py b/PLC/Debug.py index ccd7db7..b8dac85 100644 --- a/PLC/Debug.py +++ b/PLC/Debug.py @@ -46,8 +46,9 @@ def profile(callable): return wrapper if __name__ == "__main__": - @profile def sleep(seconds = 1): time.sleep(seconds) + sleep = profile(sleep) + sleep(1) -- 2.43.0