Changeset 3692 in products for quintagroup.captcha.core/trunk/quintagroup/captcha/core/utils.py
- Timestamp:
- Jul 3, 2013 11:58:01 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.captcha.core/trunk/quintagroup/captcha/core/utils.py
r3689 r3692 34 34 35 35 36 # BBB: Python 2.4 support 37 def any(iterable): 38 for element in iterable: 39 if element: 40 return True 41 return False 36 try: 37 # introduced in Python 2.5 38 from __builtin__ import any 39 except ImportError: 40 # BBB: Python 2.4 support 41 def any(iterable): 42 for element in iterable: 43 if element: 44 return True 45 return False 42 46 43 47
Note: See TracChangeset
for help on using the changeset viewer.