summaryrefslogtreecommitdiffstats
path: root/Lib/xml/dom/__init__.py
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2012-03-05 11:37:02 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2012-03-05 11:37:02 (GMT)
commit8cf4b51fa4954393450f02cb38a5e60847eab8e5 (patch)
tree77d0865d17f9a2eec34df91d7129236396bc08a5 /Lib/xml/dom/__init__.py
parent6c75301eb6892170dcbea634b3be5cfa179c3d2e (diff)
downloadcpython-8cf4b51fa4954393450f02cb38a5e60847eab8e5.zip
cpython-8cf4b51fa4954393450f02cb38a5e60847eab8e5.tar.gz
cpython-8cf4b51fa4954393450f02cb38a5e60847eab8e5.tar.bz2
xml.dom.minidom: add more __slots__ to limit resource usage.
Diffstat (limited to 'Lib/xml/dom/__init__.py')
-rw-r--r--Lib/xml/dom/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/xml/dom/__init__.py b/Lib/xml/dom/__init__.py
index 4401bdf..97cf9a6 100644
--- a/Lib/xml/dom/__init__.py
+++ b/Lib/xml/dom/__init__.py
@@ -17,6 +17,7 @@ pulldom -- DOM builder supporting on-demand tree-building for selected
class Node:
"""Class giving the NodeType constants."""
+ __slots__ = ()
# DOM implementations may use this as a base class for their own
# Node implementations. If they don't, the constants defined here