Kaydet (Commit) 67addfe2 authored tarafından Guido van Rossum's avatar Guido van Rossum

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.
üst 1fcd4389
...@@ -93,7 +93,7 @@ except ImportError: ...@@ -93,7 +93,7 @@ except ImportError:
def _group(s): def _group(s):
conv=localeconv() conv=localeconv()
grouping=conv['grouping'] grouping=conv['grouping']
if not grouping:return s if not grouping:return (s, 0)
result="" result=""
seps = 0 seps = 0
spaces = "" spaces = ""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment