Fix error where unpermitted variables would remain on a heap.

feature/documentation-builds-dirhtml
Isis Lovecruft 2013-04-02 08:58:03 +00:00
parent d8351e52e9
commit 931792cd9b
No known key found for this signature in database
GPG Key ID: A3ADB67A2CDB8B35
1 changed files with 3 additions and 0 deletions

View File

@ -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)