C preprocessor written in Python
Revision | 54a3ee518ecc79392ed559ced8514fde4399e4fd (tree) |
---|---|
Time | 2022-02-01 15:44:20 |
Author | Eric Hopper <hopper@omni...> |
Commiter | Eric Hopper |
Small formatting and etc.. cleanups.
@@ -9,10 +9,11 @@ | ||
9 | 9 | # this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.html> |
10 | 10 | |
11 | 11 | from collections.abc import Sequence |
12 | -from heapq import heappush | |
13 | 12 | from typing import Generic, Iterable, Iterator, List, Optional, TypeVar, Union |
14 | 13 | from weakref import ref, ReferenceType |
15 | 14 | |
15 | +__all__ = ["LazySequence"] | |
16 | + | |
16 | 17 | |
17 | 18 | T = TypeVar("T") |
18 | 19 |
@@ -22,7 +23,7 @@ | ||
22 | 23 | super().__init__(**kwargs) |
23 | 24 | self.buffer: List[T] = [] |
24 | 25 | self.iterator: Iterator[T] = item_iterator |
25 | - self.heads: List[ReferenceType[T]]= [] | |
26 | + self.heads: List[ReferenceType[T]] = [] | |
26 | 27 | self.index_of_0: int = 0 |
27 | 28 | |
28 | 29 | def new_sequence(self, sequence: "LazySequence[T]") -> None: |