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:
Daniele Varrazzo 2010-10-06 01:30:43 +01:00
parent 22aea9114b
commit 7a9d678050
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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*/