Skip to content

Commit

Permalink
Semi-bogus string cast to avoid Python 2 vs. 3 failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
nyergler committed Nov 18, 2013
1 parent 02ae8aa commit 61ffdfd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rst
Expand Up @@ -58,8 +58,8 @@ Once you have a session ID, you can retrieve a list of Articles_::
`Article fields`_ map to Python properties::

>>> article = articles[0]
>>> article.subject
u'Subject 1'
>>> str(article.subject)
'Subject 1'
>>> article.in_support_center
True

Expand Down Expand Up @@ -117,8 +117,8 @@ like a ``dict``, keyed by locale::
>>> translations = article.translations
>>> len(translations)
2
>>> translations['es'].subject
u'Tema de Ayuda'
>>> str(translations['es'].subject)
'Tema de Ayuda'


.. _`valid Requests auth object`: http://docs.python-requests.org/en/latest/user/authentication/
Expand Down

0 comments on commit 61ffdfd

Please sign in to comment.