From 1f877ef1993eaa40167fbdd818739e77ae1b9424 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 13 Aug 2001 14:50:44 +0000 Subject: [PATCH] Remove some dead code (PyChecker) --- Lib/locale.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/locale.py b/Lib/locale.py index dd7df1e743b..d3c0eb1f924 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):