mirror of
https://github.com/python/cpython.git
synced 2024-11-28 20:33:54 +08:00
Fix the fix :-(
This commit is contained in:
parent
6938a297da
commit
71e57d090d
@ -818,6 +818,8 @@ formatstring(format, args)
|
||||
res = getstringvalue(result) + reslen - rescnt;
|
||||
}
|
||||
if (sign) {
|
||||
if (fill != ' ')
|
||||
*res++ = sign;
|
||||
rescnt--;
|
||||
if (width > len)
|
||||
width--;
|
||||
@ -828,7 +830,7 @@ formatstring(format, args)
|
||||
*res++ = fill;
|
||||
} while (--width > len);
|
||||
}
|
||||
if (sign)
|
||||
if (sign && fill == ' ')
|
||||
*res++ = sign;
|
||||
memcpy(res, buf, len);
|
||||
res += len;
|
||||
|
Loading…
Reference in New Issue
Block a user