Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSecondThundeR <awayfromgalaxy@gmail.com>2021-04-17 12:54:04 +0300
committerSecondThundeR <awayfromgalaxy@gmail.com>2021-04-17 12:54:04 +0300
commit9991b19a064536defd22a7941504a4699aa906b0 (patch)
tree813711628ab038ddebbe18ba0573c4711b8e223a /examples
parent7be93adb99bd9b534874e29b05adc1e39d98b647 (diff)
Initial rework of generic_select function
Here are list of changes: - Removed `sort` parameter, since every function has a sorted list in most cases - Added two new parameters to disable local output of options items and allow empty input from the user by returning None - Added a while loop, where it returns each time a RequirementError is raised - Added log info for each input error to help figure out what the problem is - Changed the check of the stripped input length to compare with 0, since the length cannot be less than 0 - Changed `isdigit` to `isnumeric`, which returns False if given digit is negative - Slightly changed a check for an out of range error - Removed displaying the list of available options when input is incorrect, in order to prevent the screen from overflowing - Added log info if options list is empty - Added log info if options are not dictionary or list - Added dictionary values conversion to accept only list and dictionaries as option - Added sorting dictionary values by default
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions