mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
Revert rev 43041, which introduced the "z" format qualifier
unique to Python 2.5.
This commit is contained in:
parent
ab8aeba517
commit
8ea61f1a83
1 changed files with 4 additions and 4 deletions
|
|
@ -250,11 +250,11 @@ CField_repr(CFieldObject *self)
|
|||
name = ((PyTypeObject *)self->proto)->tp_name;
|
||||
|
||||
if (bits)
|
||||
result = PyString_FromFormat("<Field type=%s, ofs=%zd:%d, bits=%d>",
|
||||
name, self->offset, size, bits);
|
||||
result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
|
||||
name, (int)self->offset, size, bits);
|
||||
else
|
||||
result = PyString_FromFormat("<Field type=%s, ofs=%zd, size=%d>",
|
||||
name, self->offset, size);
|
||||
result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
|
||||
name, (int)self->offset, size);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue