From e25b0dae73a1fb7fa3dbe09369d3e9aacefb359f Mon Sep 17 00:00:00 2001 From: Niels Thykier Date: Sun, 15 Apr 2018 17:36:07 +0000 Subject: [PATCH] Remove a (now) unused parameter to renameID Signed-off-by: Niels Thykier --- scour/scour.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scour/scour.py b/scour/scour.py index d74d3d2..ad5c7d4 100644 --- a/scour/scour.py +++ b/scour/scour.py @@ -738,7 +738,7 @@ def shortenIDs(doc, prefix, options): # (e.g. remapping "c" to "a" is not going to win us anything) if len(curId) != len(rid): # Then go rename it. - num += renameID(doc, rid, curId, identifiedElements, referencedIDs.get(rid)) + num += renameID(rid, curId, identifiedElements, referencedIDs.get(rid)) elif curId < rid: # If we skip reassigning an ID because it has the same length # (E.g. skipping "c" -> "a"), then we have to mark the "future" @@ -769,7 +769,7 @@ def intToID(idnum, prefix): return prefix + rid -def renameID(doc, idFrom, idTo, identifiedElements, referringNodes): +def renameID(idFrom, idTo, identifiedElements, referringNodes): """ Changes the ID name from idFrom to idTo, on the declaring element as well as all nodes in referringNodes.