Skip to content

Commit fd8f8cb

Browse files
committed
wip
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 8867ec0 commit fd8f8cb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tools/schema-downloader.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,13 @@
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

114114
for source, target in OTHER_DOWNLOADABLES:
115115
urlretrieve(source, target) # nosec B310

0 commit comments

Comments
 (0)