Kaydet (Commit) 2c475427 authored tarafından Guido van Rossum's avatar Guido van Rossum

oct(0) should return '0', not '00'

üst 96caaee8
......@@ -322,8 +322,10 @@ long_format(aa, base)
})
} while (ABS(a->ob_size) != 0);
DECREF(a);
if (base == 8)
*--p = '0';
if (base == 8) {
if (size_a != 0)
*--p = '0';
}
else if (base == 16) {
*--p = 'x';
*--p = '0';
......
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