Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.5.x] [py3] str.decode does not exist; str.encode was intended

Backport of fba6df1 from master
  • Loading branch information...
commit 3919810923d44d0cd8068ab7b21c8aba041180ed 1 parent 171a663
Marti authored February 26, 2013 timgraham committed February 27, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  docs/topics/python3.txt
2  docs/topics/python3.txt
@@ -238,7 +238,7 @@ under Python 3, use the :func:`str` builtin::
238 238
     str('my string')
239 239
 
240 240
 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`
242 242
 always returns ``bytes``, and ``bytes.decode`` always returns ``str``. As a
243 243
 consequence, the following pattern is sometimes necessary::
244 244
 

0 notes on commit 3919810

Please sign in to comment.
Something went wrong with that request. Please try again.