1. Armin Rigo
  2. cpython-withatomic


Guido van Rossum  committed e522ed8

Implement Mark Favas's suggestion. There's a clear bug in _group():
its first return statement returns a single value while its caller
always expects it to return a tuple of two items. Fix this by
returning (s, 0) instead.

This won't make the locale test on Irix succeed, but now it will fail
because of a bug in the platform's en_US locale rather than because of
a bug in the locale module.

  • Participants
  • Parent commits 49085bb
  • Branches legacy-trunk

Comments (0)

Files changed (1)

File Lib/locale.py

View file
  • Ignore whitespace
 def _group(s):
-    if not grouping:return s
+    if not grouping:return (s, 0)
     seps = 0
     spaces = ""