summaryrefslogtreecommitdiffstats
path: root/Lib/locale.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-08-13 14:50:44 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-08-13 14:50:44 (GMT)
commit1f877ef1993eaa40167fbdd818739e77ae1b9424 (patch)
tree79f735e4d0f130f1505491bf99ec62a71db9a12c /Lib/locale.py
parent86c7e22036c935b3a3da98653db2ee313e46206a (diff)
downloadcpython-1f877ef1993eaa40167fbdd818739e77ae1b9424.zip
cpython-1f877ef1993eaa40167fbdd818739e77ae1b9424.tar.gz
cpython-1f877ef1993eaa40167fbdd818739e77ae1b9424.tar.bz2
Remove some dead code (PyChecker)
Diffstat (limited to 'Lib/locale.py')
-rw-r--r--Lib/locale.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index dd7df1e..d3c0eb1 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -268,9 +268,7 @@ def _parse_localename(localename):
return code.split('.')[:2]
elif code == 'C':
return None, None
- else:
- raise ValueError, 'unknown locale: %s' % localename
- return l
+ raise ValueError, 'unknown locale: %s' % localename
def _build_localename(localetuple):