summaryrefslogtreecommitdiff
path: root/portato/eix/parser.py
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-08-14 16:20:13 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-08-14 16:20:13 +0200
commit02e754313d35a11882aaaf252e474081c18570dd (patch)
treea631c19c78d2b619f39251a5258c6eb6ec084871 /portato/eix/parser.py
parentb2dadbfb614395d2c2827b43c91cc2f798f990b9 (diff)
downloadportato-02e754313d35a11882aaaf252e474081c18570dd.tar.gz
portato-02e754313d35a11882aaaf252e474081c18570dd.tar.bz2
portato-02e754313d35a11882aaaf252e474081c18570dd.zip
Make LazyElement use __slots__ - to decrease memory consumption
Diffstat (limited to 'portato/eix/parser.py')
-rw-r--r--portato/eix/parser.py1
1 files changed, 1 insertions, 0 deletions
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