1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/pip/backwardcompat.py

13 lines
218 B
Python
Raw Normal View History

2009-11-20 08:10:46 +01:00
"""Stuff that isn't in some old versions of Python"""
__all__ = ['any']
try:
any
except NameError:
def any(seq):
for item in seq:
if item:
return True
return False