mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #10131: Fixed deep copying of minidom documents. Based on patch
by Marian Ganisin.
This commit is contained in:
parent
747d48cf27
commit
c472246d81
4 changed files with 94 additions and 45 deletions
|
@ -64,10 +64,10 @@ class NodeList(list):
|
|||
length = property(_get_length, _set_length,
|
||||
doc="The number of nodes in the NodeList.")
|
||||
|
||||
def __getstate__(self):
|
||||
return list(self)
|
||||
|
||||
# For backward compatibility
|
||||
def __setstate__(self, state):
|
||||
if state is None:
|
||||
state = []
|
||||
self[:] = state
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue