mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
There is no point in allowing subclasses of Xid.
By James Henstridge on 2008-07-24. Merged from lp:~jamesh/psycopg/two-phase-commit/revision/358
This commit is contained in:
parent
22aea9114b
commit
7a9d678050
|
@ -16,6 +16,7 @@
|
||||||
|
|
||||||
* psycopg/xid_type.c (xid_len, xid_getitem): implement sequence
|
* psycopg/xid_type.c (xid_len, xid_getitem): implement sequence
|
||||||
behaviour, as required for transaction IDs.
|
behaviour, as required for transaction IDs.
|
||||||
|
(XidType): There is no point in allowing subclasses of Xid.
|
||||||
|
|
||||||
2008-07-23 James Henstridge <james@jamesh.id.au>
|
2008-07-23 James Henstridge <james@jamesh.id.au>
|
||||||
|
|
||||||
|
|
|
@ -255,7 +255,7 @@ PyTypeObject XidType = {
|
||||||
0, /*tp_setattro*/
|
0, /*tp_setattro*/
|
||||||
0, /*tp_as_buffer*/
|
0, /*tp_as_buffer*/
|
||||||
|
|
||||||
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
|
Py_TPFLAGS_DEFAULT|Py_TPFLAGS_HAVE_GC, /*tp_flags*/
|
||||||
xid_doc, /*tp_doc*/
|
xid_doc, /*tp_doc*/
|
||||||
|
|
||||||
(traverseproc)xid_traverse, /*tp_traverse*/
|
(traverseproc)xid_traverse, /*tp_traverse*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user