tejado / pgoapi

Pokemon Go API lib
Other
1.4k stars 445 forks source link

Update utilities.py #92

Closed KleinerNull closed 8 years ago

KleinerNull commented 8 years ago

Got rid of the useless clojure, so the code is simpler also this part is working also on python3, because of the differences of calling 'next' in python2 and python3. The code is pretty much from this reddit thread: https://www.reddit.com/r/learnpython/comments/4u9b2z/calling_next_on_a_functoin_that_should_return_a/

I saw that discussion and just want to change this code. But I am very interested why this clojure/generator thing happend!

tejado commented 8 years ago

Great, thanks! I will explain it tomorrow, then I have more time for it again :)