Remove obsolete comment and workaround for 2to3

Sphinx's use of 2to3 was removed in
956d6286bf.
This commit is contained in:
Jon Dufresne 2019-08-15 19:23:17 -07:00
parent 47cd262b3e
commit 8081a09ca6

View File

@ -60,9 +60,7 @@ class peek_iter:
return self
def __next__(self, n: int = None) -> Any:
# note: prevent 2to3 to transform self.next() in next(self) which
# causes an infinite loop !
return getattr(self, 'next')(n)
return self.next(n)
def _fillcache(self, n: int) -> None:
"""Cache `n` items. If `n` is 0 or None, then 1 item is cached."""