]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
#15949, 15899: avoid using non-latin1 chars in the doc (they break `make all-pdf`).
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 22 Sep 2012 08:23:06 +0000 (11:23 +0300)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 22 Sep 2012 08:23:06 +0000 (11:23 +0300)
Doc/howto/unicode.rst

index bcd29be698876f1b6e221ea375e3ffb77cb61b5a..ea83d29199abed8c01c9755ceed62b6271af9541 100644 (file)
@@ -262,8 +262,8 @@ Unicode result).  The following examples show the differences::
         ...
     UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0:
       invalid start byte
-    >>> b'\x80abc'.decode("utf-8", "replace")
-    'abc'
+    >>> b'\x80abc'.decode("utf-8", "replace")  #doctest: +SKIP
+    '?abc'
     >>> b'\x80abc'.decode("utf-8", "ignore")
     'abc'