From ecb4a54d051d24f6bb8344d92b07a4c7170c6fa3 Mon Sep 17 00:00:00 2001 From: Srinivas Reddy Thatiparthy Date: Mon, 6 Jan 2025 18:08:01 +0530 Subject: [PATCH] Update doc strings --- Lib/xml/dom/minidom.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py index 561d3d8fc3e..e0b3e4d6405 100644 --- a/Lib/xml/dom/minidom.py +++ b/Lib/xml/dom/minidom.py @@ -225,8 +225,9 @@ def normalize(self): def cloneNode(self, deep): """Create and return a duplicate of this node. - deep: If True, recursively clone this node's descendants. - If False, clone only this node. + deep + If True, recursively clone this node's descendants. + If False, clone only this node. """ return _clone_node(self, deep, self.ownerDocument or self) @@ -1367,7 +1368,8 @@ def _get_internalSubset(self): def cloneNode(self, deep): """Create and return a duplicate of this node. - deep: If True, recursively clone this node's descendants. + deep + If True, recursively clone this node's descendants. If False, clone only this node. """ if self.ownerDocument is None: @@ -1934,10 +1936,13 @@ def renameNode(self, n, namespaceURI, name): def _clone_node(node, deep, newOwnerDocument): """Create and return a clone of a DOM node. - node: The DOM node to clone - deep: If True, recursively clone the node's descendants. + node + The DOM node to clone + deep + If True, recursively clone the node's descendants. If False, only clone the node itself. - newOwnerDocument: The document that will own the cloned node + newOwnerDocument + The document that will own the cloned node """ if node.ownerDocument.isSameNode(newOwnerDocument): operation = xml.dom.UserDataHandler.NODE_CLONED