Fix all issues detected by pyflakes

This commit is contained in:
Eduard Braun 2016-09-15 21:31:34 +02:00
parent 82df0d2327
commit 99363c9089
4 changed files with 245 additions and 246 deletions

View file

@ -645,7 +645,6 @@ def removeUnusedDefs(doc, defElem, elemsToRemove=None):
if elemsToRemove is None:
elemsToRemove = []
identifiedElements = findElementsWithId(doc.documentElement)
referencedIDs = findReferencedElements(doc.documentElement)
keepTags = ['font', 'style', 'metadata', 'script', 'title', 'desc']
@ -2072,6 +2071,7 @@ def cleanPath(element, options):
# convert absolute coordinates into relative ones.
# Reuse the data structure 'path', since we're not adding or removing subcommands.
# Also reuse the coordinate lists since we're not adding or removing any.
x = y = 0
for pathIndex in range(0, len(path)):
cmd, data = path[pathIndex] # Changes to cmd don't get through to the data structure
i = 0