esdalmaijer / markovbot

Library to generate text with a Markov chain, with support to read and post updates to Twitter accounts.

Home Page:http://www.pygaze.org/2016/03/how-to-code-twitter-bot/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Last use of `unicode` in the Python 3.5 version

esdalmaijer opened this issue · comments

In line 510, a list of values is converted to a list of unicode values:

responses = map(unicode, list(respdict[targetstring]))

This should be:

responses = map(str, list(respdict[targetstring]))

(Might also be good to update the comments.)

Would you mind picking this up, @kburk1997? :)

Thanks! Solved with your commit.