From 00cf42b554e11e09348218b9e66d72de178694ae Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 15 Apr 2018 16:22:00 +0000 Subject: [PATCH] Rename function to match DEP8 conventions Signed-off-by: Niels Thykier --- scour/scour.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scour/scour.py b/scour/scour.py index 1f8780a..ad675e6 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -714,7 +714,7 @@ def shortenIDs(doc, prefix, options): # Add unreferenced IDs to end of idList in arbitrary order idList.extend([rid for rid in identifiedElements if rid not in idList]) # Ensure we do not reuse a protected ID by accident - protectedIDs = _protectedIDs(identifiedElements, options) + protectedIDs = protected_ids(identifiedElements, options) curIdNum = 1 @@ -831,7 +831,7 @@ def renameID(doc, idFrom, idTo, identifiedElements, referencedIDs): return num -def _protectedIDs(seenIDs, options): +def protected_ids(seenIDs, options): """Return a list of protected IDs out of the seenIDs""" protectedIDs = [] if options.protect_ids_prefix or options.protect_ids_noninkscape or options.protect_ids_list: @@ -858,7 +858,7 @@ def _protectedIDs(seenIDs, options): def unprotected_ids(doc, options): u"""Returns a list of unprotected IDs within the document doc.""" identifiedElements = findElementsWithId(doc.documentElement) - protectedIDs = _protectedIDs(identifiedElements, options) + protectedIDs = protected_ids(identifiedElements, options) if protectedIDs: for id in protectedIDs: del identifiedElements[id]