Mercurial > cpython-lru_cache-weakref
diff Objects/stringobject.c @ 1409:f5b1ddfddba8 legacy-trunk
Fix the fix :-(
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Thu, 11 Nov 1993 15:03:51 +0000 |
| parents | 18df674539da |
| children | 0d318475f9e3 |
line wrap: on
line diff
--- a/Objects/stringobject.c Thu Nov 11 14:51:57 1993 +0000 +++ b/Objects/stringobject.c Thu Nov 11 15:03:51 1993 +0000 @@ -818,6 +818,8 @@ res = getstringvalue(result) + reslen - rescnt; } if (sign) { + if (fill != ' ') + *res++ = sign; rescnt--; if (width > len) width--; @@ -828,7 +830,7 @@ *res++ = fill; } while (--width > len); } - if (sign) + if (sign && fill == ' ') *res++ = sign; memcpy(res, buf, len); res += len;
