Browse Source

Another thing missed in #91

tags/v0.4
Kunal Mehta 9 years ago
parent
commit
c8b8cd6a60
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      README.rst

+ 4
- 4
README.rst View File

@@ -103,16 +103,16 @@ whitespace::
>>> print(code.filter_templates())
['{{cleanup|date=July 2012}}', '{{bar-stub}}']

You can then convert ``code`` back into a regular ``unicode`` object (for
saving the page!) by calling ``unicode()`` on it::
You can then convert ``code`` back into a regular ``str`` object (for
saving the page!) by calling ``str()`` on it::

>>> text = unicode(code)
>>> text = str(code)
>>> print(text)
{{cleanup|date=July 2012}} '''Foo''' is a [[bar]]. {{bar-stub}}
>>> text == code
True

Likewise, use ``str(code)`` in Python 3.
Likewise, use ``unicode(code)`` in Python 2.

Integration
-----------


Loading…
Cancel
Save