Kaydet (Commit) 71e57d09 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix the fix :-(

üst 6938a297
...@@ -818,6 +818,8 @@ formatstring(format, args) ...@@ -818,6 +818,8 @@ formatstring(format, args)
res = getstringvalue(result) + reslen - rescnt; res = getstringvalue(result) + reslen - rescnt;
} }
if (sign) { if (sign) {
if (fill != ' ')
*res++ = sign;
rescnt--; rescnt--;
if (width > len) if (width > len)
width--; width--;
...@@ -828,7 +830,7 @@ formatstring(format, args) ...@@ -828,7 +830,7 @@ formatstring(format, args)
*res++ = fill; *res++ = fill;
} while (--width > len); } while (--width > len);
} }
if (sign) if (sign && fill == ' ')
*res++ = sign; *res++ = sign;
memcpy(res, buf, len); memcpy(res, buf, len);
res += len; res += len;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment