Skip to content

Commit

Permalink
Fixed Python 3 bug
Browse files Browse the repository at this point in the history
Print inside of map didn't display any values in Python 3, but did so in
Python 2.
  • Loading branch information
Emil Tullstedt committed Jul 30, 2015
1 parent 2a6a3b0 commit 9c65fdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion elkme/elks.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ def my_numbers(conf):
numbers = retval['data']
else:
numbers = filter(lambda num: num['active'] == 'yes', retval['data'])
map(lambda num: print(num['number']), numbers)
numbers = list(map(lambda num: num['number'], numbers))
for number in numbers:
print(number)
return s(response)

0 comments on commit 9c65fdb

Please sign in to comment.