Skip to content

Commit e47e184

Browse files
committed
Unicode howto: use .txt as a more universally understood extension for text files.
1 parent a12b682 commit e47e184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/howto/unicode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ like those in :meth:`str.encode` and :meth:`bytes.decode`.
537537

538538
Reading Unicode from a file is therefore simple::
539539

540-
with open('unicode.rst', encoding='utf-8') as f:
540+
with open('unicode.txt', encoding='utf-8') as f:
541541
for line in f:
542542
print(repr(line))
543543

0 commit comments

Comments
 (0)