mirror of
https://github.com/python/cpython.git
synced 2025-09-18 14:40:43 +00:00
I forgot to start the unit test suite first.
This commit is contained in:
parent
f16baebf16
commit
295f4fa119
1 changed files with 1 additions and 5 deletions
|
@ -5441,7 +5441,7 @@ def _parse_format_specifier(format_spec):
|
||||||
format_dict['precision'] = 1
|
format_dict['precision'] = 1
|
||||||
|
|
||||||
# record whether return type should be str or unicode
|
# record whether return type should be str or unicode
|
||||||
format_dict['unicode'] = isinstance(format_spec, unicode)
|
format_dict['unicode'] = True
|
||||||
|
|
||||||
return format_dict
|
return format_dict
|
||||||
|
|
||||||
|
@ -5486,10 +5486,6 @@ def _format_align(body, spec_dict):
|
||||||
half = len(padding)//2
|
half = len(padding)//2
|
||||||
result = padding[:half] + sign + body + padding[half:]
|
result = padding[:half] + sign + body + padding[half:]
|
||||||
|
|
||||||
# make sure that result is unicode if necessary
|
|
||||||
if spec_dict['unicode']:
|
|
||||||
result = unicode(result)
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
##### Useful Constants (internal use only) ################################
|
##### Useful Constants (internal use only) ################################
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue