Skip to content

Commit 4574dfe

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/schema-downloader.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,15 @@
102102
target = dspec['targetPattern'].replace('%s', version)
103103
tempfile, _ = urlretrieve(source) # nosec B310
104104
print(source, '->', target)
105-
with open(tempfile, 'r') as tmpf, \
106-
open(target, 'w', newline='\n') as tarf:
105+
with open(tempfile, 'r') as tmpf:
107106
text = tmpf.read()
107+
with open(target, 'w', newline='\n') as tarf:
108108
for search, replace in dspec['replace']:
109109
text = text.replace(search, replace)
110110
for search, replace in dspec['replaceRE']:
111111
text = search.sub(replace, text)
112112
tarf.write(text)
113113

114114
for source, target in OTHER_DOWNLOADABLES:
115+
print(source, '->', target)
115116
urlretrieve(source, target) # nosec B310

0 commit comments

Comments
 (0)