git://git.onelab.eu
/
plcapi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change the logic of clipping leases
[plcapi.git]
/
PLC
/
Debug.py
diff --git
a/PLC/Debug.py
b/PLC/Debug.py
index
b120871
..
9dba598
100644
(file)
--- a/
PLC/Debug.py
+++ b/
PLC/Debug.py
@@
-28,8
+28,8
@@
def profile(callable):
start = time.time()
result = callable(*args, **kwds)
end = time.time()
start = time.time()
result = callable(*args, **kwds)
end = time.time()
- args =
map(str, args
)
- args += ["%s = %s" % (name, str(value)) for (name, value) in
kwds.items(
)]
+ args =
list(map(str, args)
)
+ args += ["%s = %s" % (name, str(value)) for (name, value) in
list(kwds.items()
)]
logger.info("%s (%s): %f s" % (callable.__name__, ", ".join(args), end - start))
return result
logger.info("%s (%s): %f s" % (callable.__name__, ", ".join(args), end - start))
return result