/usr/lib/python2.7/dist-packages/picklable_itertools/__init__.py is in python-picklable-itertools 0.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | import os.path
from pkg_resources import get_distribution, DistributionNotFound
from .filter import ifilter, ifilterfalse, takewhile, dropwhile
from .grouping import groupby
from .iter_dispatch import (
iter_, ordered_sequence_iterator, file_iterator, range_iterator
)
from .map_zip import imap, starmap, izip, izip_longest
from .permutations import (
permutations, combinations, combinations_with_replacement
)
from .product import product # noqa
from .range import xrange # noqa
from .simple import accumulate, chain, compress, count, cycle, repeat
from .slicing import islice
from .tee import tee
# Python 3 equivalents.
filter = ifilter
filterfalse = ifilterfalse
zip = izip
zip_longest = izip_longest
# Remove after bartvm/fuel has been updated to use this version.
_iter = iter_
try:
DIST = get_distribution('picklable_itertools')
DIST_LOC = os.path.normcase(DIST.location)
HERE = os.path.normcase(__file__)
if not HERE.startswith(os.path.join(DIST_LOC, 'picklable_itertools')):
raise DistributionNotFound
except DistributionNotFound:
__version__ = 'not installed'
else:
__version__ = DIST.version
__all__ = ['ifilter', 'ifilterfalse', 'takewhile', 'dropwhile', 'groupby',
'_iter', 'ordered_sequence_iterator', 'file_iterator',
'range_iterator', 'imap', 'starmap', 'izip', 'izip_longest',
'permutations', 'combinations', 'combinations_with_replacement',
'accumulate', 'chain', 'compress', 'count', 'cycle', 'repeat',
'islice', 'tee', 'filter', 'filterfalse', 'zip', 'zip_longest']
|