Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f16baeb commit 295f4faCopy full SHA for 295f4fa
1 file changed
Lib/decimal.py
@@ -5441,7 +5441,7 @@ def _parse_format_specifier(format_spec):
5441
format_dict['precision'] = 1
5442
5443
# record whether return type should be str or unicode
5444
- format_dict['unicode'] = isinstance(format_spec, unicode)
+ format_dict['unicode'] = True
5445
5446
return format_dict
5447
@@ -5486,10 +5486,6 @@ def _format_align(body, spec_dict):
5486
half = len(padding)//2
5487
result = padding[:half] + sign + body + padding[half:]
5488
5489
- # make sure that result is unicode if necessary
5490
- if spec_dict['unicode']:
5491
- result = unicode(result)
5492
-
5493
return result
5494
5495
##### Useful Constants (internal use only) ################################
0 commit comments