diff options
author | Georg Brandl <georg@python.org> | 2013-10-06 11:07:10 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2013-10-06 11:07:10 (GMT) |
commit | e47e184c4a383bcf5f73b23b5553b737969d1928 (patch) | |
tree | 443b45a804e1b99ade71583e874e26b0714667f7 /Doc/howto/unicode.rst | |
parent | a12b68203381b349effba8d442af4a98a74fbb3e (diff) | |
download | cpython-e47e184c4a383bcf5f73b23b5553b737969d1928.zip cpython-e47e184c4a383bcf5f73b23b5553b737969d1928.tar.gz cpython-e47e184c4a383bcf5f73b23b5553b737969d1928.tar.bz2 |
Unicode howto: use .txt as a more universally understood extension for text files.
Diffstat (limited to 'Doc/howto/unicode.rst')
-rw-r--r-- | Doc/howto/unicode.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/unicode.rst b/Doc/howto/unicode.rst index f19cfc3..486195a 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)) |