File: base.py

package info (click to toggle)
python-picklable-itertools 0.1.1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 172 kB
  • sloc: python: 1,222; makefile: 3
file content (12 lines) | stat: -rw-r--r-- 217 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
from abc import ABCMeta, abstractmethod
import six


@six.add_metaclass(ABCMeta)
class BaseItertool(six.Iterator):
    def __iter__(self):
        return self

    @abstractmethod
    def __next__(self):
        pass