mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: Variable help shadows a built in
Solution: Removed the variable, as we didn't really need it anyway
This commit is contained in:
parent
7333d48e45
commit
71b71fdd5f
@ -331,9 +331,8 @@ def create_parser():
|
|||||||
# Parser factory for each type of new election, so we get a bunch of commands that look like this:
|
# Parser factory for each type of new election, so we get a bunch of commands that look like this:
|
||||||
# election new <some_election_type> <args>...
|
# election new <some_election_type> <args>...
|
||||||
for name, data in elections.items():
|
for name, data in elections.items():
|
||||||
help = data['help']
|
|
||||||
args = data['args']
|
args = data['args']
|
||||||
generic_parser = new_election_subparser.add_parser(name, help=help)
|
generic_parser = new_election_subparser.add_parser(name, help=data['help'])
|
||||||
for arg, kwargs in args.items():
|
for arg, kwargs in args.items():
|
||||||
generic_parser.add_argument(arg, **kwargs)
|
generic_parser.add_argument(arg, **kwargs)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user