osmith has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-dev/+/27433 )
Change subject: net/fill_config.py: refactor print 'using config...'
......................................................................
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: Iad39a7889c107ceb8c16325bb545cb426eb9b6e2
---
M net/fill_config.py
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-dev refs/changes/33/27433/1
diff --git a/net/fill_config.py b/net/fill_config.py
index d68f50c..f68f572 100755
--- a/net/fill_config.py
+++ b/net/fill_config.py
@@ -52,7 +52,9 @@
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)
--
To view, visit
https://gerrit.osmocom.org/c/osmo-dev/+/27433
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-dev
Gerrit-Branch: master
Gerrit-Change-Id: Iad39a7889c107ceb8c16325bb545cb426eb9b6e2
Gerrit-Change-Number: 27433
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: newchange