[Erp5-report] r40538 luke - /erp5/trunk/buildout/tests/assertSoftware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Nov 23 13:41:42 CET 2010


Author: luke
Date: Tue Nov 23 13:41:41 2010
New Revision: 40538

URL: http://svn.erp5.org?rev=40538&view=rev
Log:
 - provide local implementetion of any in case if not available

Modified:
    erp5/trunk/buildout/tests/assertSoftware.py

Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=40538&r1=40537&r2=40538&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Tue Nov 23 13:41:41 2010
@@ -30,6 +30,16 @@ import os
 import subprocess
 import unittest
 
+try:
+  any([True])
+except NameError:
+  # there is no any in python2.4
+  def any(l):
+    for q in l:
+      if q:
+        return True
+    return False
+
 # List of libraries which are acceptable to be linked in globally
 ACCEPTABLE_GLOBAL_LIB_LIST = (
   # 32 bit Linux




More information about the Erp5-report mailing list