the apply() builtin is deprecated since version 2.3,
use the extended call syntax, as the doc suggests:
http://www.python.org/doc/2.6.1/library/functions.html#non-essential-built-in-functions
Spotted by pylint
--
Vincent Legoll
Index: misc.py
===================================================================
--- misc.py (revision 1294)
+++ misc.py (working copy)
@@ -243,7 +243,7 @@
# allow single arguments to be passed as is.
if type(args) != type(()):
args = (args,)
- apply(m, args)
+ m(*args)
def clamp(val, lower, upper):
"""Clamp 'val' to the inclusive range [lower,upper].
_______________________________________________
meld-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/meld-list