tzcron.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:tzcron 作者: bloomberg 项目源码 文件源码
def __next__(self):
        """
        Returns the next occurrence or raises StopIteration
        This method adds some extra validation for the returned
        iteration that are not natively handled by rrule
        """
        while True:
            next_it = next(self.__rrule_iterator)
            next_it = self.t_zone.localize(next_it, is_dst=None)

            if not all([filt(next_it) for filt in self.filters]):
                continue

            return next_it


# Private helpers
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号