mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
xml.dom.minidom: add more __slots__ to limit resource usage.
This commit is contained in:
parent
6c75301eb6
commit
8cf4b51fa4
2 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue