From 0312e3223128aa0cebd176dfc20a29043110549e Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Thu, 7 Mar 2013 04:08:01 +0000 Subject: [PATCH] Change internal function variable 'vars' in _is_allowed() to use _underscore(remove_prefix=True) option. --- gnupg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnupg.py b/gnupg.py index 70be36b..04c07e7 100644 --- a/gnupg.py +++ b/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