From 7a9d6780507c00d8e1f0c5a94e9114533b617e12 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Wed, 6 Oct 2010 01:30:43 +0100 Subject: [PATCH] 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 --- ChangeLog | 1 + psycopg/xid_type.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index eb0caab3..d9240d22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -16,6 +16,7 @@ * psycopg/xid_type.c (xid_len, xid_getitem): implement sequence behaviour, as required for transaction IDs. + (XidType): There is no point in allowing subclasses of Xid. 2008-07-23 James Henstridge diff --git a/psycopg/xid_type.c b/psycopg/xid_type.c index e4b8fb1e..8e1c0c62 100644 --- a/psycopg/xid_type.c +++ b/psycopg/xid_type.c @@ -255,7 +255,7 @@ PyTypeObject XidType = { 0, /*tp_setattro*/ 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*/ (traverseproc)xid_traverse, /*tp_traverse*/