From 550727af87d5f646617e0c19a3f3300c8117e7f5 Mon Sep 17 00:00:00 2001 From: Alec Warner Date: Thu, 23 Jul 2020 18:06:54 -0700 Subject: Fix redefined-builtin errors for pylint. Some of these are simple variable renames. A few of the uses were refactored and some were simply disabled; often due to redefinition as part of a function signature. I did not do any research in terms of API changes so these were typically left as-is. Closes: https://github.com/gentoo/portage/pull/587 Signed-off-by: Alec Warner Signed-off-by: Zac Medico --- lib/portage/glsa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/portage/glsa.py') diff --git a/lib/portage/glsa.py b/lib/portage/glsa.py index a6f9fc833..ecbcde8f4 100644 --- a/lib/portage/glsa.py +++ b/lib/portage/glsa.py @@ -139,7 +139,7 @@ def getListElements(listnode): if li.nodeType == xml.dom.Node.ELEMENT_NODE] return rValue -def getText(node, format, textfd = None): +def getText(node, format, textfd = None): # pylint: disable=redefined-builtin """ This is the main parser function. It takes a node and traverses recursive over the subnodes, getting the text of each (and the @@ -210,7 +210,7 @@ def getText(node, format, textfd = None): rValue = re.sub(r"[\s]{2,}", " ", rValue) return rValue -def getMultiTagsText(rootnode, tagname, format): +def getMultiTagsText(rootnode, tagname, format): # pylint: disable=redefined-builtin """ Returns a list with the text of all subnodes of type I{tagname} under I{rootnode} (which itself is not parsed) using the given I{format}. -- cgit v1.2.3-65-gdbad