Skip to content

Commit 14bb77e

Browse files
committed
Update docstrings for cloneNode(...)
1 parent afa51ef commit 14bb77e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Lib/xml/dom/minidom.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,12 @@ def _get_internalSubset(self):
13641364
return self.internalSubset
13651365

13661366
def cloneNode(self, deep):
1367-
"""The Node.cloneNode() method returns a duplicate of the node."""
1367+
"""Create and return a duplicate of this node.
1368+
1369+
Args:
1370+
deep (bool): If True, recursively clone this node's descendants.
1371+
If False, clone only this node.
1372+
"""
13681373
if self.ownerDocument is None:
13691374
# it's ok
13701375
clone = DocumentType(None)

0 commit comments

Comments
 (0)