diff options
| -rw-r--r-- | kconfiglib.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 27b8ac9..a6d1f5d 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -3070,6 +3070,10 @@ class _Feed(object): """Class for working with sequences in a stream-like fashion; handy for tokens.""" + # This would be more helpful on the item classes, but would remove some + # flexibility + __slots__ = ['items', 'length', 'i'] + def __init__(self, items): self.items = items self.length = len(self.items) @@ -3106,6 +3110,8 @@ class _FileFeed(object): careful to get the line number right in the presence of continuation lines.""" + __slots__ = ['filename', 'lines', 'length', 'linenr'] + def __init__(self, filename): self.filename = _clean_up_path(filename) with open(filename, "r") as f: |
