From 02e754313d35a11882aaaf252e474081c18570dd Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Fri, 14 Aug 2009 16:20:13 +0200 Subject: Make LazyElement use __slots__ - to decrease memory consumption --- portato/eix/parser.py | 1 + 1 file changed, 1 insertion(+) (limited to 'portato/eix/parser.py') diff --git a/portato/eix/parser.py b/portato/eix/parser.py index ecfb74c..44c4214 100644 --- a/portato/eix/parser.py +++ b/portato/eix/parser.py @@ -101,6 +101,7 @@ def overlay (file, skip = False): return (string(file), string(file)) class LazyElement (object): + __slots__ = ("file", "get_type", "_value", "pos") def __init__ (self, get_type, file): self.file = file self.get_type = get_type -- cgit v1.2.3-70-g09d2