浏览代码

Merge pull request #92 from legoktm/patch-2

Another thing missed in #91
tags/v0.4
Ben Kurtovic 10 年前
父节点
当前提交
69ef246433
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. +4
    -4
      README.rst

+ 4
- 4
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
-----------


正在加载...
取消
保存