ó
]c           @   s%   d  Z  d d l Z e j d  Z d S(   s£   
Python 2 implementation of the accumulate function in itertools
From the Python documentation https://docs.python.org/3/library/itertools.html#itertool-functions
i˙˙˙˙Nc         c   s_   t  |   } y t |  } Wn t k
 r0 d SX| Vx" | D] } | | |  } | Vq= Wd S(   s   Return running totalsN(   t   itert   nextt   StopIteration(   t   iterablet   funct   itt   totalt   element(    (    s9   lib/python2.7/site-packages/openpyxl/compat/accumulate.pyt
   accumulate	   s    (   t   __doc__t   operatort   addR   (    (    (    s9   lib/python2.7/site-packages/openpyxl/compat/accumulate.pyt   <module>   s   