diff options
author | Christian Heimes <christian@cheimes.de> | 2008-02-29 15:03:39 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-02-29 15:03:39 (GMT) |
commit | 295f4fa1196807868fe6cf2bc91cd42db1b1fb13 (patch) | |
tree | 69a6e3c98522117cb9e5f0e192be05015d730f3e /Lib/decimal.py | |
parent | f16baebf168a56afdc5c26c7ee195aed00a25617 (diff) | |
download | cpython-295f4fa1196807868fe6cf2bc91cd42db1b1fb13.zip cpython-295f4fa1196807868fe6cf2bc91cd42db1b1fb13.tar.gz cpython-295f4fa1196807868fe6cf2bc91cd42db1b1fb13.tar.bz2 |
I forgot to start the unit test suite first.
Diffstat (limited to 'Lib/decimal.py')
-rw-r--r-- | Lib/decimal.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/decimal.py b/Lib/decimal.py index 38e93de..b3d84e7 100644 --- a/Lib/decimal.py +++ b/Lib/decimal.py @@ -5441,7 +5441,7 @@ def _parse_format_specifier(format_spec): format_dict['precision'] = 1 # record whether return type should be str or unicode - format_dict['unicode'] = isinstance(format_spec, unicode) + format_dict['unicode'] = True return format_dict @@ -5486,10 +5486,6 @@ def _format_align(body, spec_dict): half = len(padding)//2 result = padding[:half] + sign + body + padding[half:] - # make sure that result is unicode if necessary - if spec_dict['unicode']: - result = unicode(result) - return result ##### Useful Constants (internal use only) ################################ |