Florent Xicluna
0965ee213e
Issue #2892 : preserve iterparse events in case of SyntaxError
14 years ago
Florent Xicluna
67d5d0ed44
Closes #7334 : close source files on ElementTree.parse and iterparse (partial backport of issue #10093 from 3.2).
14 years ago
Larry Hastings
402b73fb8d
Backported PyCapsule from 3.1, and converted most uses of
CObject to PyCapsule.
16 years ago
Florent Xicluna
e2e81e8fcd
Fix repr of tree Element on windows.
16 years ago
Florent Xicluna
3e8c189faa
Issue #6472 : The xml.etree package is updated to ElementTree 1.3. The cElementTree module is updated too.
16 years ago
Gregory P. Smith
dd96db63f6
This reverts r63675 based on the discussion in this thread:
http://mail.python.org/pipermail/python-dev/2008-June/079988.html
Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names
in the spirit of 3.0 are available via a #define only. See the email thread.
18 years ago
Christian Heimes
593daf545b
Renamed PyString to PyBytes
18 years ago
Christian Heimes
87dcf3d260
Coverity issue CID #182
size_error: Allocating 1 bytes to pointer "children", which needs at least 4 bytes
18 years ago
Christian Heimes
e93237dfcc
#1629 : Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT. Macros for b/w compatibility are available.
18 years ago
Martin v. Löwis
6819210b9e
PEP 3123: Provide forward compatibility with Python 3.0, while keeping
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and
PyVarObject_HEAD_INIT.
19 years ago
Fredrik Lundh
dc075b9ddd
SF#1534630
ignore data that arrives before the opening start tag
20 years ago
Neal Norwitz
6f5ff3f3eb
Klocwork made another run and found a bunch more problems.
This is the first batch of fixes that should be easy to verify based on context.
This fixes problem numbers: 220 (ast), 323-324 (symtable),
321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree).
20 years ago
Trent Mick
f08d663a2f
Upgrade pyexpat to expat 2.0.0 ( http://python.org/sf/1462338 ).
20 years ago
Neal Norwitz
c7074386b4
Fix some Py_ssize_t issues
20 years ago
Fredrik Lundh
81707f1a8c
"_self" is a said to be a reserved word in Watcom C 10.6. I'm
not sure that's really standard compliant behaviour, but I guess
we have to fix that anyway...
20 years ago
Neal Norwitz
c6a989ac3a
Fix problems found by Coverity.
longobject.c: also fix an ssize_t problem
<a> could have been NULL, so hoist the size calc to not use <a>.
_ssl.c: under fail: self is DECREF'd, but it would have been NULL.
_elementtree.c: delete self if there was an error.
_csv.c: I'm not sure if lineterminator could have been anything other than
a string. However, other string method calls are checked, so check this
one too.
20 years ago
Fredrik Lundh
44ed4db955
merged with cElementTree development trunk (1.0.6 snapshot):
Fixed a number of potential null-pointer-reference-under-pressure
glitches, based on input from the Coverity analysis tool and Simo
Salminen.
20 years ago
Martin v. Löwis
02cbf4ae4b
More unconsting.
20 years ago
Martin v. Löwis
18e165558b
Merge ssize_t branch.
20 years ago
Neal Norwitz
02876df9de
Check return results for errors
20 years ago
Neal Norwitz
1ac754fa10
Check return result from Py_InitModule*(). This API can fail.
Probably should be backported.
20 years ago
Fredrik Lundh
c3389997d4
SF#1389809
cast first PyUnicode_Decode argument to proper type (why is
"char *" used for encoded byte streams, btw? shouldn't that
be "void *" or, if necessary, "unsigned char *"?)
20 years ago
Fredrik Lundh
0149e3a090
Fixed None reference leaks in TreeBuilder class (reported by Neal
Norwitz)
20 years ago
Fredrik Lundh
b80775ecf1
Fixed reference counting error when using the entity dictionary
(reported by Chris Olds). Backported from the 1.0.6 development
branch.
20 years ago
Fredrik Lundh
6d52b55c56
updating to cElementTree 1.0.5 (step 3 of 3)
20 years ago
Fredrik Lundh
8c8836b406
updating to cElementTree 1.0.5 (step 2 of 3)
20 years ago
Fredrik Lundh
7cfe6eee0d
updating to cElementTree 1.0.5
20 years ago
Fredrik Lundh
c97ba7064e
added PSG licensing blurb
20 years ago
Fredrik Lundh
14b4feac6a
renamed to _elementtree (for Python 2.5)
20 years ago
Fredrik Lundh
0c53bfd374
copied cElementTree 1.0.4 to Modules
20 years ago