@@ -128,8 +128,8 @@ def build_rename_map(root):
128128 if num > 0 :
129129 name , ext = os .path .splitext (fn )
130130 # add file with its path -> only rename that occurrence
131- result [os .path .join (dir , fn )] = "{}.{}{}" . format ( name , num + 1 ,
132- ext )
131+ result [os .path .join (dir , fn )] = \
132+ "{}.{}{}" . format ( name , num + 1 , ext )
133133 seen [low ] += 1
134134
135135 return result
@@ -221,8 +221,8 @@ def trasform_relative_link(rename_map, target, file):
221221 new_fn = rename_map .get (fn )
222222 if new_fn :
223223 # look for case conflict of the renamed file
224- abstarget = os .path .normpath (os . path . join ( os . path . dirname ( file ),
225- dir , new_fn ))
224+ abstarget = os .path .normpath (
225+ os . path . join ( os . path . dirname ( file ), dir , new_fn ))
226226 new_fn = rename_map .get (abstarget , new_fn )
227227 else :
228228 # original filename unchanged, look for case conflict
@@ -240,7 +240,6 @@ def trasform_relative_link(rename_map, target, file):
240240# file is the path of the file the link came from.
241241# root is the path to the root of the archive.
242242def transform_link (rename_map , target , file , root ):
243-
244243 if is_loader_link (target ):
245244 return transform_loader_link (target , file , root )
246245
0 commit comments