Commit 3a25eeed authored by Leo Pound Singer's avatar Leo Pound Singer

Make GlobAction return a list instead of a tuple

For consistency with standard StoreAction
Original: 4f3e283346ad40f03bcbf2eebdaba7071cf25e85
parent 20b04baf
......@@ -64,7 +64,7 @@ class GlobAction(argparse._StoreAction):
"""Generate a list of filenames from a list of filenames and globs."""
def __call__(self, parser, namespace, values, *args, **kwargs):
values = tuple(
values = list(
itertools.chain.from_iterable(glob.iglob(s) for s in values))
if values:
super(GlobAction, self).__call__(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment