File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 103103 tempfile , _ = urlretrieve (source ) # nosec B310
104104 print (source , '->' , target )
105105 with open (tempfile , 'r' ) as tmpf , \
106- open (target , 'w' , newline = '\n ' ) as tarf :
107- text = tmpf .read ()
108- for search , replace in dspec ['replace' ]:
109- text = text .replace (search , replace )
110- for search , replace in dspec ['replaceRE' ]:
111- text = search .sub (replace , text )
112- tarf .write (text )
106+ open (target , 'w' , newline = '\n ' ) as tarf :
107+ text = tmpf .read ()
108+ for search , replace in dspec ['replace' ]:
109+ text = text .replace (search , replace )
110+ for search , replace in dspec ['replaceRE' ]:
111+ text = search .sub (replace , text )
112+ tarf .write (text )
113113
114114for source , target in OTHER_DOWNLOADABLES :
115115 urlretrieve (source , target ) # nosec B310
You can’t perform that action at this time.
0 commit comments