Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 295f4fa

Browse files
committed
I forgot to start the unit test suite first.
1 parent f16baeb commit 295f4fa

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/decimal.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5441,7 +5441,7 @@ def _parse_format_specifier(format_spec):
54415441
format_dict['precision'] = 1
54425442

54435443
# record whether return type should be str or unicode
5444-
format_dict['unicode'] = isinstance(format_spec, unicode)
5444+
format_dict['unicode'] = True
54455445

54465446
return format_dict
54475447

@@ -5486,10 +5486,6 @@ def _format_align(body, spec_dict):
54865486
half = len(padding)//2
54875487
result = padding[:half] + sign + body + padding[half:]
54885488

5489-
# make sure that result is unicode if necessary
5490-
if spec_dict['unicode']:
5491-
result = unicode(result)
5492-
54935489
return result
54945490

54955491
##### Useful Constants (internal use only) ################################

0 commit comments

Comments
 (0)