mirror of https://github.com/python/cpython.git
Whitespace normalization.
This commit is contained in:
parent
0e540c391f
commit
8ae2df483c
|
@ -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:
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue