summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/locale.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/locale.py b/Lib/locale.py
index 7a03722..d26560d 100644
--- a/Lib/locale.py
+++ b/Lib/locale.py
@@ -69,8 +69,7 @@ except ImportError:
""" setlocale(integer,string=None) -> string.
Activates/queries locale processing.
"""
- if value is not None and \
- value is not 'C':
+ if value is not None and value != 'C':
raise Error, '_locale emulation only supports "C" locale'
return 'C'