Skip to content

Commit

Permalink
unpacking the variable issue #11
Browse files Browse the repository at this point in the history
seems some python version only support named arguments followed
by *expression.
  • Loading branch information
rhoit committed Jun 20, 2016
1 parent 5dd3636 commit eff5e0f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ui/home.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,11 @@ def _view_results(self, results):

for key, val in FULL.items():
self.sidebar.add_suggestion(key, val)
self._view_item(*key, val)
word, ID, src = key
# NOTE: unpacking variable, seems some python version
# only supports named args followed by *expression
# ref: https://github.com/foss-np/anubad/issues/11
self._view_item(word, ID, src, val)
treeSelection.select_path(self.sidebar.count - 1)

self.viewer.textbuffer.insert_at_cursor("\n")
Expand Down

0 comments on commit eff5e0f

Please sign in to comment.