Commits

Pau Tallada Crespí  committed 6b87cba

Fix format specifications to be compatible with python 2.6

  • Participants
  • Parent commits 00bc066

Comments (0)

Files changed (1)

     True
 
     """
-    fmt = u"{:>%ds}" % width
+    fmt = u"{0:>%ds}" % width
     return fmt.format(s)
 
 
     True
 
     """
-    fmt = u"{:<%ds}" % width
+    fmt = u"{0:<%ds}" % width
     return fmt.format(s)
 
 
     True
 
     """
-    fmt = u"{:^%ds}" % width
+    fmt = u"{0:^%ds}" % width
     return fmt.format(s)
 
 
         return missingval
 
     if valtype in [int, _binary_type, _text_type]:
-        return u"{}".format(val)
+        return u"{0}".format(val)
     elif valtype is float:
         return format(float(val), floatfmt)
     else:
-        return u"{}".format(val)
+        return u"{0}".format(val)
 
 
 def _align_header(header, alignment, width):