poldek: poldek/python/poldek.py - needless lambda

mis mis at pld-linux.org
Fri Jun 29 00:22:31 CEST 2007


Author: mis                          Date: Thu Jun 28 22:22:31 2007 GMT
Module: poldek                        Tag: HEAD
---- Log message:
- needless lambda

---- Files affected:
poldek/poldek/python:
   poldek.py (1.10 -> 1.11) 

---- Diffs:

================================================================
Index: poldek/poldek/python/poldek.py
diff -u poldek/poldek/python/poldek.py:1.10 poldek/poldek/python/poldek.py:1.11
--- poldek/poldek/python/poldek.py:1.10	Wed Jun 27 18:20:46 2007
+++ poldek/poldek/python/poldek.py	Fri Jun 29 00:22:26 2007
@@ -170,7 +170,7 @@
 for c in ['provides', 'requires', 'conflicts', 'suggests']:
     setattr(pkg, c, property(n_array_proxy_func('pkg.', '_get_%s' % c, 'capreq')))
 
-setattr(pkg, 'files', property(eval("lambda self: poldekmod.pkg_get_flist_it(self)")));
+setattr(pkg, 'files', property(lambda self: poldekmod.pkg_get_flist_it(self)));
 
 tags = _modsymbols('pkguinf_', with_methods = False)
 for k, v in tags.iteritems():
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/poldek/poldek/python/poldek.py?r1=1.10&r2=1.11&f=u



More information about the pld-cvs-commit mailing list