summaryrefslogtreecommitdiff
path: root/poezio/core
diff options
context:
space:
mode:
authorMadhur Garg <madhurgarg96@gmail.com>2019-03-17 15:21:16 +0530
committerMadhur Garg <madhurgarg96@gmail.com>2019-03-18 16:39:09 +0530
commit614ea5423b4ca0c14de525e6b4cc03568d1a3eae (patch)
tree46532886b244de9a5242e84b3d33cbb4558fef68 /poezio/core
parent0ed0bd3c6b332d10d35d440618016aec0980f7bc (diff)
downloadpoezio-614ea5423b4ca0c14de525e6b4cc03568d1a3eae.tar.gz
poezio-614ea5423b4ca0c14de525e6b4cc03568d1a3eae.tar.bz2
poezio-614ea5423b4ca0c14de525e6b4cc03568d1a3eae.tar.xz
poezio-614ea5423b4ca0c14de525e6b4cc03568d1a3eae.zip
Fixes coding style; Corrected indentation and use of static length when displaying hidden value #3426
Diffstat (limited to 'poezio/core')
-rw-r--r--poezio/core/commands.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/poezio/core/commands.py b/poezio/core/commands.py
index f1466cb7..c9605987 100644
--- a/poezio/core/commands.py
+++ b/poezio/core/commands.py
@@ -527,7 +527,7 @@ class CommandCore:
})
for option_name, option_value in section.items():
if 'password' in option_name and 'eval_password' not in option_name:
- option_value = '*'*len(option_value)
+ option_value = '********'
lines.append(
'%s\x19%s}=\x19o%s' %
(option_name, dump_tuple(
@@ -537,7 +537,7 @@ class CommandCore:
option = args[0]
value = config.get(option)
if 'password' in option and 'eval_password' not in option and value is not None:
- value = '*'*len(value)
+ value = '********'
if value is None and '=' in option:
args = option.split('=', 1)
info = ('%s=%s' % (option, value), 'Info')