Hack to avoid a nasty recursion issue when Python is invoked
in verbose mode: pre-import the Latin-1 and UTF-8 codecs
diff --git a/Lib/site.py b/Lib/site.py
index f7ca83b..1d3183a 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -405,6 +405,9 @@
def installnewio():
"""Install new I/O library as default."""
import io
+ # Hack to avoid a nasty recursion issue when Python is invoked
+ # in verbose mode: pre-import the Latin-1 and UTF-8 codecs
+ from encodings import latin_1, utf_8
# Trick so that open won't become a bound method when stored
# as a class variable (as dumbdbm does)
class open: