[Python-3000-checkins] r61127 - python/branches/py3k/Lib/decimal.py

christian.heimes python-3000-checkins at python.org
Fri Feb 29 16:03:39 CET 2008


Author: christian.heimes
Date: Fri Feb 29 16:03:39 2008
New Revision: 61127

Modified:
   python/branches/py3k/Lib/decimal.py
Log:
I forgot to start the unit test suite first.

Modified: python/branches/py3k/Lib/decimal.py
==============================================================================
--- python/branches/py3k/Lib/decimal.py	(original)
+++ python/branches/py3k/Lib/decimal.py	Fri Feb 29 16:03:39 2008
@@ -5441,7 +5441,7 @@
             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 @@
         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) ################################


More information about the Python-3000-checkins mailing list