Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2262a80 commit 7519e7aCopy full SHA for 7519e7a
1 file changed
Lib/locale.py
@@ -69,8 +69,7 @@ def setlocale(category, value=None):
69
""" setlocale(integer,string=None) -> string.
70
Activates/queries locale processing.
71
"""
72
- if value is not None and \
73
- value is not 'C':
+ if value is not None and value != 'C':
74
raise Error, '_locale emulation only supports "C" locale'
75
return 'C'
76
0 commit comments