Change internal function variable 'vars' in _is_allowed() to use
_underscore(remove_prefix=True) option.feature/documentation-builds-dirhtml
parent
1144d79a25
commit
0312e32231
2
gnupg.py
2
gnupg.py
|
@ -775,7 +775,7 @@ def _is_allowed(input):
|
|||
""").split()
|
||||
|
||||
## these are all the options that GPG knows:
|
||||
vars = frozenset([x.lstrip('-').replace('-', '_') for x in _possible])
|
||||
vars = frozenset([_underscore(x, remove_prefix=True) for x in _possible])
|
||||
|
||||
## these are the allowed options we will handle so far, all others should
|
||||
## be dropped. this dance is so that when new options are added later, we
|
||||
|
|
Loading…
Reference in New Issue