mirror of https://gerrit.osmocom.org/osmo-dev
net/fill_config.py: refactor print 'using config...'
Put each line in a separate, aligned print statement and use f-strings (Python 3.6 feature, even debian oldstable has > 3.6 by now). This is in preparation to add a new line about the original config in the next patch. Change-Id: Iad39a7889c107ceb8c16325bb545cb426eb9b6e2changes/33/27433/1
parent
f34a9443eb
commit
02f2254b23
|
@ -52,7 +52,9 @@ local_config_file = os.path.realpath(local_config_file)
|
|||
tmpl_dir = os.path.realpath(tmpl_dir)
|
||||
net_dir = os.path.realpath(".")
|
||||
|
||||
print('using config file %r\non templates %r\nwith NET_DIR %r' % (local_config_file, tmpl_dir, net_dir))
|
||||
print(f'using config file: {local_config_file}')
|
||||
print(f'on templates: {tmpl_dir}')
|
||||
print(f'with NET_DIR: {net_dir}')
|
||||
|
||||
with open(LAST_LOCAL_CONFIG_FILE, 'w') as last_file:
|
||||
last_file.write(local_config_file)
|
||||
|
|
Loading…
Reference in New Issue