Home | History | Annotate | Download | only in lib-dynload
__gmon_start__ _init _fini __cxa_finalize _Jv_RegisterClasses PyExc_IndexError PyErr_SetString PyArg_ParseTuple _Py_NoneStruct PyObject_Free PyTuple_New PyObject_CallObject PyExc_RuntimeError PyObject_CallMethod PyObject_Compare PyExc_ValueError PyList_New PyList_Append PyList_Type PyExc_TypeError PyErr_Format PyString_FromString PyDict_GetItem PyArg_ParseTupleAndKeywords _PyObject_New PyDict_New PyObject_Malloc PyObject_Realloc PyObject_GetAttrString PyErr_Clear PyErr_NoMemory PyUnicodeUCS2_Decode PyString_Type _PyString_Resize Py_BuildValue sprintf PyObject_CallFunction PyObject_SetAttrString PyErr_SetObject Py_FindMethod PyObject_Repr PyString_FromFormat PyExc_AttributeError PyDict_Keys PyDict_Items PySequence_GetSlice strlen PyString_FromStringAndSize PyUnicodeUCS2_DecodeUTF8 PyDict_SetItem memcpy PyDict_Type PyDict_Size PyDict_Copy PyDict_Update PyNumber_AsSsize_t PySlice_Type PySlice_GetIndicesEx PyErr_Occurred PyList_SetItem PyInt_FromLong PySequence_Fast PySequence_Size init_elementtree PyType_Type Py_InitModule4 PyEval_GetBuiltins PyDict_SetItemString PyRun_StringFlags PyDict_GetItemString PyCapsule_Import PyExc_SyntaxError PyErr_NewException PyModule_AddObject libc.so.6 _edata __bss_start _end GLIBC_2.1.3 GLIBC_2.0 
child assignment index out of range event handling only supported for cElementTree.Treebuilder targets cannot load dispatch table from pyexpat can't delete element attributes element indices must be integers multiple elements on top level expected sequence, not "%.200s" attempt to assign sequence of size %zd to extended slice of size %zd from copy import copy, deepcopy try: from xml.etree import ElementTree except ImportError: import ElementTree ET = ElementTree del ElementTree import _elementtree as cElementTree try: copy(cElementTree.Element('x')) except: def copyelement(elem): return elem class CommentProxy: def __call__(self, text=None): element = cElementTree.Element(ET.Comment) element.text = text return element def __cmp__(self, other): return cmp(ET.Comment, other) cElementTree.Comment = CommentProxy() class ElementTree(ET.ElementTree): def parse(self, source, parser=None): close_source = False if not hasattr(source, 'read'): source = open(source, 'rb') close_source = False try: if parser is not None: while 1: data = source.read(65536) if not data: break parser.feed(data) self._root = parser.close() else: parser = cElementTree.XMLParser() self._root = parser._parse(source) return self._root finally: if close_source: source.close() cElementTree.ElementTree = ElementTree def iter(node, tag=None): if tag == '*': tag = None if tag is None or node.tag == tag: yield node for node in node: for node in iter(node, tag): yield node def itertext(node): if node.text: yield node.text for e in node: for s in e.itertext(): yield s if e.tail: yield e.tail def parse(source, parser=None): tree = ElementTree() tree.parse(source, parser) return tree cElementTree.parse = parse class iterparse(object): root = None def __init__(self, file, events=None): self._close_file = False if not hasattr(file, 'read'): file = open(file, 'rb') self._close_file = True self._file = file self._events = [] self._index = 0 self._error = None self.root = self._root = None b = cElementTree.TreeBuilder() self._parser = cElementTree.XMLParser(b) self._parser._setevents(self._events, events) def next(self): while 1: try: item = self._events[self._index] self._index += 1 return item except IndexError: pass if self._error: e = self._error self._error = None raise e if self._parser is None: self.root = self._root if self._close_file: self._file.close() raise StopIteration # load event buffer del self._events[:] self._index = 0 data = self._file.read(16384) if data: try: self._parser.feed(data) except SyntaxError as exc: self._error = exc else: self._root = self._parser.close() self._parser = None def __iter__(self): return self cElementTree.iterparse = iterparse class PIProxy: def __call__(self, target, text=None): element = cElementTree.Element(ET.PI) element.text = target if text: element.text = element.text + ' ' + text return element def __cmp__(self, other): return cmp(ET.PI, other) cElementTree.PI = cElementTree.ProcessingInstruction = PIProxy() def XML(text): parser = cElementTree.XMLParser() parser.feed(text) return parser.close() cElementTree.XML = cElementTree.fromstring = XML def XMLID(text): tree = XML(text) ids = {} for elem in tree.iter(): id = elem.get('id') if id: ids[id] = elem return tree, ids cElementTree.XMLID = XMLID try: register_namespace = ET.register_namespace except AttributeError: def register_namespace(prefix, uri): ET._namespace_map[uri] = prefix cElementTree.register_namespace = register_namespace cElementTree.dump = ET.dump cElementTree.ElementPath = ElementPath = ET.ElementPath cElementTree.iselement = ET.iselement cElementTree.QName = ET.QName cElementTree.tostring = ET.tostring cElementTree.fromstringlist = ET.fromstringlist cElementTree.tostringlist = ET.tostringlist cElementTree.VERSION = '1.0.6' cElementTree.__version__ = '1.0.6' :close OO:xml |O:iter iter helper not found O|O:iterfind O!:remove list.remove(x): x not in list O|O:find O|O:findall O!|O:_setevents start-ns end-ns unknown event '%s' invalid event tuple O|O:get |Oz:XMLParser } comment pi replace O:data %s: line %d, column %d (ii) position  child index out of range tail attrib :getchildren :clear deepcopy helper not found :itertext itertext helper not found :keys :items pop from empty stack O:end join O|OO:findtext OOOO strict entity target version Expat %d.%d.%d OO:makeelement O|O!:Element :TreeBuilder undefined entity &%.100s; OO:set O|O:start :__copy__ :__reduce__ copyelement helper not found O(N) O:__deepcopy__ O:extend O!O|O!:SubElement O!:append iO!:insert O:_parse read s#:feed _elementtree __builtins__ ElementPath copyelement deepcopy pyexpat.expat_CAPI pyexpat.expat_CAPI 1.0 cElementTree.ParseError XMLTreeBuilder getiterator !__reduce__ encoding 
4 0 @6 g 2 01 H u 4 @ @A 0D a @\ E u 0( 0( p5 m ' M  | <  ! o ] S Z z @^ ~ 0 ~ ' 7 ~ #  04 Q 8 K P8 C PV D @X / W ; h ~ i _ ' P#  0. R n ; ~ ~ 1 E b 
GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) GCC: (GNU) 4.6.x-google 20120106 (prerelease) GCC: (GNU) 4.2.3 (Ubuntu 4.2.3-2ubuntu7) 
.symtab .strtab .shstrtab .hash .dynsym .dynstr .gnu.version .gnu.version_r .rel.dyn .rel.plt .init .text .fini .rodata .eh_frame_hdr .eh_frame .ctors .dtors .jcr .dynamic .got .got.plt .data .bss .comment .debug_aranges .debug_info .debug_abbrev .debug_line .debug_ranges 
initfini.c crtstuff.c __CTOR_LIST__ __DTOR_LIST__ __JCR_LIST__ __do_global_dtors_aux completed.5467 dtor_idx.5469 frame_dummy __CTOR_END__ __FRAME_END__ __JCR_END__ __do_global_ctors_aux _elementtree.c checkpath element_length element_setitem treebuilder_close treebuilder_xml xmlparser_dealloc expat_capi treebuilder_dealloc element_iter elementtree_iter_obj element_iterfind elementpath_obj element_remove Element_Type element_find element_findall xmlparser_setevents TreeBuilder_Type expat_end_ns_handler expat_start_ns_handler element_get xmlparser kwlist.9870 XMLParser_Type memory_handler.9867 expat_end_handler expat_start_handler expat_default_handler expat_data_handler expat_comment_handler expat_pi_handler expat_unknown_encoding_handler treebuilder_handle_data treebuilder_data treebuilder_handle_namespace expat_set_error elementtree_parseerror_obj treebuilder_getattr treebuilder_methods element_repr element_getitem element_setattr element_getchildren element_dealloc_extra.isra.6 element_clear element_dealloc deepcopy elementtree_deepcopy_obj element_itertext elementtree_itertext_obj element_keys element_items treebuilder_handle_end.isra.11 treebuilder_end list_join element_findtext makeuniversal.isra.16 xmlparser_getattr xmlparser_methods element_new element_makeelement element treebuilder element_subscr element_set element_resize treebuilder_handle_start treebuilder_start element_copy element_reduce elementtree_copyelement_obj element_deepcopy element_extend subelement element_append element_insert xmlparser_parse element_ass_subscr element_getattr element_methods xmlparser_feed xmlparser_close _functions element_as_sequence element_as_mapping _GLOBAL_OFFSET_TABLE_ __x86.get_pc_thunk.bx __dso_handle __DTOR_END__ _DYNAMIC PyModule_AddObject PyDict_SetItemString sprintf@@GLIBC_2.0 PyObject_CallMethod PyExc_ValueError __gmon_start__ _Jv_RegisterClasses PyDict_Items _fini PyErr_NoMemory PyList_Type PyUnicodeUCS2_Decode PyExc_TypeError PyDict_Type _PyObject_New PyString_FromStringAndSize Py_FindMethod PyUnicodeUCS2_DecodeUTF8 init_elementtree PyDict_Update PyErr_Format PyArg_ParseTuple PyErr_Occurred PyDict_Copy PyExc_SyntaxError PyArg_ParseTupleAndKeywords PyDict_Keys PyExc_IndexError PyErr_SetObject PyString_FromString PyString_FromFormat memcpy@@GLIBC_2.0 PyInt_FromLong PySlice_GetIndicesEx strlen@@GLIBC_2.0 PyDict_Size PyDict_GetItem PySequence_Size PyExc_RuntimeError PyType_Type PyObject_CallObject PyNumber_AsSsize_t PyObject_Malloc PySequence_Fast Py_BuildValue PyObject_GetAttrString __bss_start PyRun_StringFlags PyObject_SetAttrString _Py_NoneStruct PyErr_NewException PyList_Append PyEval_GetBuiltins PyDict_GetItemString PyExc_AttributeError PySlice_Type PyObject_Compare Py_InitModule4 PyObject_Free PySequence_GetSlice _end PyErr_Clear PyTuple_New _PyString_Resize PyErr_SetString PyList_SetItem PyObject_CallFunction PyObject_Realloc PyString_Type _edata PyList_New __cxa_finalize@@GLIBC_2.1.3 PyDict_SetItem PyObject_Repr PyCapsule_Import _init PyDict_New