Browse files

Merge pull request #858 from intgr/py3kdoc-fix

Fixed a typo in Python 3 porting guide.
  • Loading branch information...
2 parents b0ba21d + fba6df1 commit 226a9fb2ea417dacbd01c95dd5283c9478e0abf6 @timgraham timgraham committed Feb 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/topics/python3.txt
@@ -238,7 +238,7 @@ under Python 3, use the :func:`str` builtin::
str('my string')
In Python 3, there aren't any automatic conversions between ``str`` and
-``bytes``, and the :mod:`codecs` module became more strict. :meth:`str.decode`
+``bytes``, and the :mod:`codecs` module became more strict. :meth:`str.encode`
always returns ``bytes``, and ``bytes.decode`` always returns ``str``. As a
consequence, the following pattern is sometimes necessary::

0 comments on commit 226a9fb

Please sign in to comment.