tumblr / pytumblr

A Python Tumblr API v2 Client
Apache License 2.0
723 stars 197 forks source link

standardize strings with .format() #52

Closed jhoonb closed 10 years ago

jhoonb commented 10 years ago

In file: 'init.py', 'request.py' and 'helpers.py' : string with %s can be replaced by .format() function, prevents bug "UnicodeDecodeError: 'ascii' codec can't decode byte 0xd1 in position 2: ordinal not in range(128)"

In file: 'helpers.py': functions: filter, map, reduce can be replaced by compressing list becomes more legible.

codingjester commented 10 years ago

Cool. Reviewing the change now. Thanks for the pull :)

codingjester commented 10 years ago

Looks great. This helps me get on the path to supporting Python 3 as well. Pulling it in.