mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
13 lines
218 B
Python
13 lines
218 B
Python
|
"""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
|