Fix error where unpermitted variables would remain on a heap.
parent
d8351e52e9
commit
931792cd9b
3
gnupg.py
3
gnupg.py
|
@ -956,6 +956,9 @@ def _sanitise(*args):
|
|||
if len(filo) > 0:
|
||||
while not is_flag(filo[0]):
|
||||
new_value += (filo.pop() + ' ')
|
||||
else:
|
||||
logger.debug("Got non-flag argument: %s" % filo[0])
|
||||
filo.pop()
|
||||
safe = _check_arg_and_value(new_arg, new_value)
|
||||
if safe is not None and safe.strip() != '':
|
||||
logger.debug("_sanitise(): appending args: %s" % safe)
|
||||
|
|
Loading…
Reference in New Issue