Commits

Barry Warsaw committed 6cfa3d6

setlocale(): In _locale-missing compatibility function, string
comparison should be done with != instead of "is not".

  • Participants
  • Parent commits ac656c8
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/locale.py

         """ 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'