This fixes a DeepSource alert:
Argument redefined from local
A local name is redefining an argument, which might suggest a potential
error. This is taken into account only for a handful of name binding
operations, such as for iterations, with statements, and exception
handler assignments.
Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
writeHtml("<" + name)
if attrs.getLength() > 0:
names = attrs.getNames()
- for name in names:
- writeHtml(" " + name + "=\"" + attrs.get(name) + "\"")
+ for n in names:
+ v = attrs.get(n)
+ writeHtml(" " + n + "=\"" + v + "\"")
writeHtml(" />" if name == "br" else ">")
def characters(self, content):