Whitespace normalization.

This commit is contained in:
Tim Peters 2001-05-02 05:54:44 +00:00
parent 0e540c391f
commit 8ae2df483c
2 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@ def __repr__ (self):
' '.join (status), id (self)) ' '.join (status), id (self))
except: except:
pass pass
try: try:
ar = repr (self.addr) ar = repr (self.addr)
except AttributeError: except AttributeError:

View File

@ -36,7 +36,7 @@ def testformat(formatstr, value, grouping = 0, output=None):
testformat("%f", -42, grouping=1, output='-42.000000') testformat("%f", -42, grouping=1, output='-42.000000')
testformat("%+f", -42, grouping=1, output='-42.000000') testformat("%+f", -42, grouping=1, output='-42.000000')
testformat("%20.f", -42, grouping=1, output=' -42') testformat("%20.f", -42, grouping=1, output=' -42')
testformat("%+10.f", -4200, grouping=1, output=' -4,200') testformat("%+10.f", -4200, grouping=1, output=' -4,200')
testformat("%-10.f", 4200, grouping=1, output='4,200 ') testformat("%-10.f", 4200, grouping=1, output='4,200 ')
finally: finally:
locale.setlocale(locale.LC_NUMERIC, oldlocale) locale.setlocale(locale.LC_NUMERIC, oldlocale)