aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2020-07-23 18:06:54 -0700
committerZac Medico <zmedico@gentoo.org>2020-07-23 19:10:43 -0700
commit550727af87d5f646617e0c19a3f3300c8117e7f5 (patch)
tree15223c8c8edeb9d7fe962faccd584c79daf0e14b /lib/portage/glsa.py
parentFix extra file. (diff)
downloadportage-550727af87d5f646617e0c19a3f3300c8117e7f5.tar.gz
portage-550727af87d5f646617e0c19a3f3300c8117e7f5.tar.bz2
portage-550727af87d5f646617e0c19a3f3300c8117e7f5.zip
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 <antarus@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'lib/portage/glsa.py')
-rw-r--r--lib/portage/glsa.py4
1 files changed, 2 insertions, 2 deletions
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}.