mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-07 02:18:09 +00:00
Format changes from trunk
This commit is contained in:
@@ -3,14 +3,14 @@
|
||||
|
||||
lines = None
|
||||
|
||||
with open('version.properties', 'r', encoding='utf-8') as f:
|
||||
with open("version.properties", "r", encoding="utf-8") as f:
|
||||
lines = f.readlines()
|
||||
|
||||
with open('version.properties', 'w', encoding='utf-8') as f:
|
||||
with open("version.properties", "w", encoding="utf-8") as f:
|
||||
for line in lines:
|
||||
if line.lstrip().startswith("build = "):
|
||||
words = line.split(" = ")
|
||||
ver = f'build = {int(words[1]) + 1}'
|
||||
f.write(f'{ver}\n')
|
||||
ver = f"build = {int(words[1]) + 1}"
|
||||
f.write(f"{ver}\n")
|
||||
else:
|
||||
f.write(line)
|
||||
|
||||
Reference in New Issue
Block a user