Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Doc/library/exceptions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -897,6 +897,9 @@ The following exceptions are used as warning categories; see the

Base class for warnings about dubious syntax.

This warning is typically emitted when compiling Python source code, and usually won't be reported
when running already compiled code.


.. exception:: RuntimeWarning

Expand Down
4 changes: 3 additions & 1 deletion Doc/library/warnings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ The following warnings category classes are currently defined:
| | unless triggered by code in ``__main__``). |
+----------------------------------+-----------------------------------------------+
| :exc:`SyntaxWarning` | Base category for warnings about dubious |
| | syntactic features. |
| | syntactic features (typically emitted when |
| | compiling Python source code, and hence |
| | may not be suppressed by runtime filters) |
+----------------------------------+-----------------------------------------------+
| :exc:`RuntimeWarning` | Base category for warnings about dubious |
| | runtime features. |
Expand Down
9 changes: 9 additions & 0 deletions Lib/encodings/aliases.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@
'iso_ir_157' : 'iso8859_10',
'l6' : 'iso8859_10',
'latin6' : 'iso8859_10',
'latin_6' : 'iso8859_10',

# iso8859_11 codec
'thai' : 'iso8859_11',
Expand All @@ -328,6 +329,7 @@
'iso_8859_13' : 'iso8859_13',
'l7' : 'iso8859_13',
'latin7' : 'iso8859_13',
'latin_7' : 'iso8859_13',

# iso8859_14 codec
'iso_8859_14' : 'iso8859_14',
Expand All @@ -336,18 +338,21 @@
'iso_ir_199' : 'iso8859_14',
'l8' : 'iso8859_14',
'latin8' : 'iso8859_14',
'latin_8' : 'iso8859_14',

# iso8859_15 codec
'iso_8859_15' : 'iso8859_15',
'l9' : 'iso8859_15',
'latin9' : 'iso8859_15',
'latin_9' : 'iso8859_15',

# iso8859_16 codec
'iso_8859_16' : 'iso8859_16',
'iso_8859_16_2001' : 'iso8859_16',
'iso_ir_226' : 'iso8859_16',
'l10' : 'iso8859_16',
'latin10' : 'iso8859_16',
'latin_10' : 'iso8859_16',

# iso8859_2 codec
'csisolatin2' : 'iso8859_2',
Expand All @@ -356,6 +361,7 @@
'iso_ir_101' : 'iso8859_2',
'l2' : 'iso8859_2',
'latin2' : 'iso8859_2',
'latin_2' : 'iso8859_2',

# iso8859_3 codec
'csisolatin3' : 'iso8859_3',
Expand All @@ -364,6 +370,7 @@
'iso_ir_109' : 'iso8859_3',
'l3' : 'iso8859_3',
'latin3' : 'iso8859_3',
'latin_3' : 'iso8859_3',

# iso8859_4 codec
'csisolatin4' : 'iso8859_4',
Expand All @@ -372,6 +379,7 @@
'iso_ir_110' : 'iso8859_4',
'l4' : 'iso8859_4',
'latin4' : 'iso8859_4',
'latin_4' : 'iso8859_4',

# iso8859_5 codec
'csisolatincyrillic' : 'iso8859_5',
Expand Down Expand Up @@ -415,6 +423,7 @@
'iso_ir_148' : 'iso8859_9',
'l5' : 'iso8859_9',
'latin5' : 'iso8859_9',
'latin_5' : 'iso8859_9',

# johab codec
'cp1361' : 'johab',
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:mod:`!encodings.aliases`: Add ``latin_N`` aliases
Loading