[Python-checkins] r54059 - sandbox/trunk/pep3101/unicodeformat.c

eric.smith python-checkins at python.org
Thu Mar 1 14:33:35 CET 2007


Author: eric.smith
Date: Thu Mar  1 14:33:32 2007
New Revision: 54059

Modified:
   sandbox/trunk/pep3101/unicodeformat.c
Log:
Removed alignment character '^'.  It was in Talin's sample python implementation, but not in the PEP.

Modified: sandbox/trunk/pep3101/unicodeformat.c
==============================================================================
--- sandbox/trunk/pep3101/unicodeformat.c	(original)
+++ sandbox/trunk/pep3101/unicodeformat.c	Thu Mar  1 14:33:32 2007
@@ -176,7 +176,7 @@
 alignment_token(CH_TYPE c)
 {
     switch (c) {
-    case '<': case '>': case '=': case '^':
+    case '<': case '>': case '=':
         return 1;
     default:
         return 0;
@@ -912,7 +912,7 @@
                                        (suffix == '\0' ? 0 : 1);
         if (padding > 0) {
 #if 0
-            if align == '>' or align == '^':
+            if align == '>':
                 return fill_char * padding + prefix + result + suffix
             elif align == '='
                 return prefix + fill_char * padding + result + suffix


More information about the Python-checkins mailing list