Commits

Christian Heimes committed 8cd984c

I forgot to start the unit test suite first.

  • Participants
  • Parent commits 937a3c5

Comments (0)

Files changed (1)

File Lib/decimal.py

             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
 
         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) ################################