From c8b8cd6a605fdbd2d9cd73d4e9b486f7e3c883ac Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Sun, 28 Dec 2014 12:50:19 -0800 Subject: [PATCH] Another thing missed in #91 --- README.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.rst b/README.rst index ae338e7..45c7286 100644 --- a/README.rst +++ b/README.rst @@ -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 -----------