From: Georg Brandl Date: Sun, 6 Oct 2013 11:07:10 +0000 (+0200) Subject: Unicode howto: use .txt as a more universally understood extension for text files. X-Git-Tag: v3.4.0a4~240^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e47e184c4a383bcf5f73b23b5553b737969d1928;p=thirdparty%2FPython%2Fcpython.git Unicode howto: use .txt as a more universally understood extension for text files. --- diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst index f19cfc313315..486195a6d71f 100644 --- a/Doc/howto/unicode.rst +++ b/Doc/howto/unicode.rst @@ -537,7 +537,7 @@ like those in :meth:`str.encode` and :meth:`bytes.decode`. Reading Unicode from a file is therefore simple:: - with open('unicode.rst', encoding='utf-8') as f: + with open('unicode.txt', encoding='utf-8') as f: for line in f: print(repr(line))