Skip to content

Commit afa51ef

Browse files
committed
Update docstring for cloneNode(...)
1 parent 8b7ff8e commit afa51ef

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
@@ -221,7 +221,12 @@ def normalize(self):
221221
self.childNodes[:] = L
222222

223223
def cloneNode(self, deep):
224-
"""The Node.cloneNode() method returns a duplicate of the node."""
224+
"""Create and return a duplicate of this node.
225+
226+
Args:
227+
deep (bool): If True, recursively clone this node's descendants.
228+
If False, clone only this node.
229+
"""
225230
return _clone_node(self, deep, self.ownerDocument or self)
226231

227232
def isSupported(self, feature, version):

0 commit comments

Comments
 (0)