Fix inconsistent mix of tabs and spaces that caused test to fail.

This commit is contained in:
Jeremy Hylton 2003-09-10 19:57:31 +00:00
parent 62dba4c277
commit d7fb676023
1 changed files with 4 additions and 5 deletions

View File

@ -17,18 +17,17 @@ for loc in candidate_locales:
try: try:
setlocale(LC_NUMERIC, loc) setlocale(LC_NUMERIC, loc)
except Error: except Error:
continue continue
if verbose: if verbose:
print "locale %r" % loc print "locale %r" % loc
saw_locale = 1 saw_locale = 1
nl_radixchar = nl_langinfo(RADIXCHAR) nl_radixchar = nl_langinfo(RADIXCHAR)
li_radixchar = localeconv()['decimal_point'] li_radixchar = localeconv()['decimal_point']
if nl_radixchar != li_radixchar: if nl_radixchar != li_radixchar:
print "%r != %r" % (nl_radixchar, li_radixchar) print "%r != %r" % (nl_radixchar, li_radixchar)
nl_radixchar = nl_langinfo(THOUSEP) nl_radixchar = nl_langinfo(THOUSEP)
li_radixchar = localeconv()['thousands_sep'] li_radixchar = localeconv()['thousands_sep']
if nl_radixchar != li_radixchar: if nl_radixchar != li_radixchar:
print "%r != %r" % (nl_radixchar, li_radixchar) print "%r != %r" % (nl_radixchar, li_radixchar)
if not saw_locale: if not saw_locale:
raise ImportError, "None of the listed locales found" raise ImportError, "None of the listed locales found"