From: Mark Huang Date: Sun, 29 Oct 2006 02:35:28 +0000 (+0000) Subject: - python 2.2 compatibility X-Git-Tag: pycurl-7_13_1~419 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=45e3bf33ad95957b37a8b4dbacd432a78c4db23a;p=plcapi.git - python 2.2 compatibility --- diff --git a/PLC/Debug.py b/PLC/Debug.py index ccd7db71..b8dac85e 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)