diff options
author | Guido van Rossum <guido@python.org> | 2006-07-27 21:53:35 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-07-27 21:53:35 +0000 |
commit | 355e499dabf4704b1edfcefd112f5b814b82e4c5 (patch) | |
tree | 0dc7bddc134e8d871edebb0b068d9de4cdb57b0f /Modules/_sre.c | |
parent | d96f5be3e8a6abeb1d16e6bcc4b0704a8deee8d7 (diff) | |
download | cpython-355e499dabf4704b1edfcefd112f5b814b82e4c5.tar.gz |
Get rid of most of the flags (in tp_flags) that keep track of various
variations of the type struct and its attachments. In Py3k, all type
structs have to have all fields -- no binary backwards compatibility.
Had to change the complex object to a new-style number!
Diffstat (limited to 'Modules/_sre.c')
-rw-r--r-- | Modules/_sre.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_sre.c b/Modules/_sre.c index 42e0c202ff..d4e6051908 100644 --- a/Modules/_sre.c +++ b/Modules/_sre.c @@ -2628,7 +2628,7 @@ static PyTypeObject Pattern_Type = { 0, /* tp_getattro */ 0, /* tp_setattro */ 0, /* tp_as_buffer */ - Py_TPFLAGS_HAVE_WEAKREFS, /* tp_flags */ + Py_TPFLAGS_DEFAULT, /* tp_flags */ pattern_doc, /* tp_doc */ 0, /* tp_traverse */ 0, /* tp_clear */ |