Skip to content

Commit

Permalink
Mac LaZagne: Adding two dicts together in Python 3
Browse files Browse the repository at this point in the history
This solution to AlessandroZ#431 (comment) should work in both Python 2 and Python 3.
  • Loading branch information
cclauss authored Sep 11, 2020
1 parent 5961033 commit 7503e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mac/laZagne.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def runLaZagne(category_selected='all', subcategories={}, password=None, interac
parser_tab += categories[c]['subparser']
parser_tab += [PWrite]
dic_tmp = {c: {'parents': parser_tab, 'help': 'Run %s module' % c}}
dic = dict(dic.items() + dic_tmp.items())
dic = dict(list(dic.items()) + list(dic_tmp.items()))

subparsers = parser.add_subparsers(help='Choose a main command')
for d in dic:
Expand Down

0 comments on commit 7503e63

Please sign in to comment.