Skip to content

Need to decode unicode posts in python 2 #10

Closed
wants to merge 1 commit into from

2 participants

@dairiki
dairiki commented Jun 19, 2012

Without this, unicode in posts results in errors when running under py2.
This fixes, I think, EnigmaCurry/blogofile#122.

Note: I've not tested this under py3 (though I have attempted not to break things.)

@dairiki dairiki Reintroduce the .decode() which was dropped in 8766e13
Without this, unicode in posts results in errors in py2.
E.g. EnigmaCurry/blogofile#122
0a9dd29
@dairiki dairiki referenced this pull request in EnigmaCurry/blogofile Jun 19, 2012
Closed

Unicode problems on mac os #122

@douglatornell
Collaborator

Thanks for figuring this out! It does indeed resolve EnigmaCurry/blogofile#122.

The six library is already a dependency via the blogofile core, so I just used the change to post.py. So, I accepted this pull request in spirit even though I didn't actually merge it.

@dairiki
dairiki commented Jun 20, 2012

No problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.