Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 23110e7

Browse files
committed
alias macintosh to mac_roman #843590
1 parent 0cc7444 commit 23110e7

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

Doc/library/codecs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ particular, the following variants typically exist:
10901090
+-----------------+--------------------------------+--------------------------------+
10911091
| mac_latin2 | maclatin2, maccentraleurope | Central and Eastern Europe |
10921092
+-----------------+--------------------------------+--------------------------------+
1093-
| mac_roman | macroman | Western Europe |
1093+
| mac_roman | macroman, macintosh | Western Europe |
10941094
+-----------------+--------------------------------+--------------------------------+
10951095
| mac_turkish | macturkish | Turkish |
10961096
+-----------------+--------------------------------+--------------------------------+

Lib/encodings/aliases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -435,6 +435,7 @@
435435
'maclatin2' : 'mac_latin2',
436436

437437
# mac_roman codec
438+
'macintosh' : 'macintosh',
438439
'macroman' : 'mac_roman',
439440

440441
# mac_turkish codec

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@ Extensions
117117
Library
118118
-------
119119

120+
- Issue #843590: Make "macintosh" an alias to the "mac_roman" encoding.
121+
120122
- Create os.fsdecode(): decode from the filesystem encoding with
121123
surrogateescape error handler, or strict error handler on Windows.
122124

0 commit comments

Comments
 (0)