diff options
author | Collin Winter <collinw@gmail.com> | 2007-08-30 01:19:48 (GMT) |
---|---|---|
committer | Collin Winter <collinw@gmail.com> | 2007-08-30 01:19:48 (GMT) |
commit | ce36ad8a467d914eb5c91f33835b9eaea18ee93b (patch) | |
tree | 05bf654f3359e20b455dc300bd860bba5d291c8d /Lib/locale.py | |
parent | 8b3febef2f96c35e9aad9db2ef499db040fdefae (diff) | |
download | cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.zip cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.gz cpython-ce36ad8a467d914eb5c91f33835b9eaea18ee93b.tar.bz2 |
Raise statement normalization in Lib/.
Diffstat (limited to 'Lib/locale.py')
-rw-r--r-- | Lib/locale.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/locale.py b/Lib/locale.py index dea0ab7..b8bc567 100644 --- a/Lib/locale.py +++ b/Lib/locale.py @@ -72,7 +72,7 @@ except ImportError: Activates/queries locale processing. """ if value not in (None, '', 'C'): - raise Error, '_locale emulation only supports "C" locale' + raise Error('_locale emulation only supports "C" locale') return 'C' def strcoll(a,b): @@ -372,7 +372,7 @@ def _parse_localename(localename): return tuple(code.split('.')[:2]) elif code == 'C': return None, None - raise ValueError, 'unknown locale: %s' % localename + raise ValueError('unknown locale: %s' % localename) def _build_localename(localetuple): @@ -458,7 +458,7 @@ def getlocale(category=LC_CTYPE): """ localename = _setlocale(category) if category == LC_ALL and ';' in localename: - raise TypeError, 'category LC_ALL is not supported' + raise TypeError('category LC_ALL is not supported') return _parse_localename(localename) def setlocale(category, locale=None): |