Skip to content

Commit

Permalink
remove redundant dict on parser context init
Browse files Browse the repository at this point in the history
closes #291
  • Loading branch information
yaythomas committed Sep 22, 2022
1 parent 0a25107 commit 0e02479
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pypyr/parser/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ def get_parsed_context(args):
return {'argList': []}

# the list that's parsed from the input args is named argList
return dict({'argList': args})
return {'argList': args}
4 changes: 2 additions & 2 deletions pypyr/parser/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ def get_parsed_context(args):
)
return {'argString': ''}

# the list that's parsed from the input args is named argList
return dict({'argString': ' '.join(args)})
# the string that's parsed from the input args is named argString
return {'argString': ' '.join(args)}

0 comments on commit 0e02479

Please sign in to comment.