mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
boards.txt.py: fix extra newline at the end of JSON output
This commit is contained in:
parent
f0787e7106
commit
a358bce0d9
@ -261,4 +261,3 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -1190,14 +1190,10 @@ def package ():
|
||||
newfilestr = re.sub(r'"boards":[^\]]*\],', substitution, filestr, re.MULTILINE)
|
||||
|
||||
if packagegen:
|
||||
realstdout = sys.stdout
|
||||
sys.stdout = open(pkgfname, 'w')
|
||||
|
||||
print newfilestr
|
||||
|
||||
if packagegen:
|
||||
sys.stdout.close()
|
||||
sys.stdout = realstdout
|
||||
with open(pkgfname, 'w') as package_file:
|
||||
package_file.write(newfilestr)
|
||||
else:
|
||||
sys.stdout.write(newfilestr)
|
||||
|
||||
################################################################
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user