mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove obsolete comment and workaround for 2to3
Sphinx's use of 2to3 was removed in
956d6286bf
.
This commit is contained in:
parent
47cd262b3e
commit
8081a09ca6
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user