Skip to content

Commit

Permalink
UnicodeEncodeError fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleks Kapliy committed Sep 30, 2013
1 parent 733b7d9 commit be75132
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wordpress_xmlrpc/wordpress.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def struct(self):
return data

def __repr__(self):
return '<%s: %s>' % (self.__class__.__name__, str(self).encode('utf-8'))
return '<%s: %s>' % (self.__class__.__name__, str(self))


class WordPressTaxonomy(WordPressBase):
Expand Down Expand Up @@ -120,7 +120,7 @@ class WordPressPost(WordPressBase):

def __str__(self):
if hasattr(self, 'title'):
return self.title
return self.title.encode('utf-8')
return unicode('')


Expand Down

0 comments on commit be75132

Please sign in to comment.