From 5ce28e113827291e36387bc152d876c937f152f8 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 7 Jan 2024 16:33:45 -0500 Subject: [PATCH] Replace misuses of ".extend()" --- lib/stweak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/stweak.py b/lib/stweak.py index 451174a..627efe5 100644 --- a/lib/stweak.py +++ b/lib/stweak.py @@ -203,7 +203,7 @@ def ssh_config(_reconfig=False): _keys.extend(['auto-generate', 'other (type the location)']) # append a back button if launched optionally if _reconfig: - _keys.extend(['BACK']) + _keys.append('BACK') _key_selected_num = curses_radio(_keys, 'which private ssh key would you like to use for sshyp?') if _reconfig and _key_selected_num == len(_keys)-1: return @@ -534,7 +534,7 @@ def global_menu(_scr, _device_type, _top_message): '[OPTIONAL] extension management']) else: _options.extend(['remove registered device ids', 'manage quick-unlock/whitelist']) - _options.extend(['EXIT/DONE']) + _options.append('EXIT/DONE') _choice += curses_radio(_options, _top_message) if _choice == 0: