Skip to content

Commit

Permalink
argparse backport: remove bad or
Browse files Browse the repository at this point in the history
  • Loading branch information
mara004 committed Mar 4, 2024
1 parent 066e6d2 commit e8108fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ctypesgen/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def get_parser():

class ExtendAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
items = getattr(namespace, self.dest) or []
items = getattr(namespace, self.dest, [])
items.extend(values)
setattr(namespace, self.dest, items)

Expand Down

0 comments on commit e8108fe

Please sign in to comment.