Skip to content

Commit 226a9fb

Browse files
committed
Merge pull request django#858 from intgr/py3kdoc-fix
Fixed a typo in Python 3 porting guide.
2 parents b0ba21d + fba6df1 commit 226a9fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/python3.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ under Python 3, use the :func:`str` builtin::
238238
str('my string')
239239

240240
In Python 3, there aren't any automatic conversions between ``str`` and
241-
``bytes``, and the :mod:`codecs` module became more strict. :meth:`str.decode`
241+
``bytes``, and the :mod:`codecs` module became more strict. :meth:`str.encode`
242242
always returns ``bytes``, and ``bytes.decode`` always returns ``str``. As a
243243
consequence, the following pattern is sometimes necessary::
244244

0 commit comments

Comments
 (0)