summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 73fc94d..5763b14 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -512,7 +512,8 @@ def _build_localename(localetuple):
else:
return language + '.' + encoding
except (TypeError, ValueError):
- raise TypeError('Locale must be None, a string, or an iterable of two strings -- language code, encoding.')
+ raise TypeError('Locale must be None, a string, or an iterable of '
+ 'two strings -- language code, encoding.') from None
def getdefaultlocale(envvars=('LC_ALL', 'LC_CTYPE', 'LANG', 'LANGUAGE')):