summaryrefslogtreecommitdiffstats
path: root/Lib/site.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/site.py')
-rw-r--r--Lib/site.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/site.py b/Lib/site.py
index eaa08a7..dfe658a 100644
--- a/Lib/site.py
+++ b/Lib/site.py
@@ -305,7 +305,8 @@ if 0:
encoding = "undefined"
if encoding != "ascii":
- sys.setdefaultencoding(encoding)
+ # On Non-Unicode builds this will raise an AttributeError...
+ sys.setdefaultencoding(encoding) # Needs Python Unicode build !
#
# Run custom site specific code, if available.