hyb
2026-01-09 4cb426cb3ae31e772a09d4ade5b2f0242aaeefa0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
Ë
Yñúhæ†ã    ó,—ddlZddlZddlmcmZd„ZGd„dej«Z        dd„Z    dd„Z        dd„Z
d    „Z                 dd
„Z                 dd „Z d „Z        dd „Z        dddddddedœd„Z        dddddddedœd„Z        dddddddedœd„Zej&d„«Zy)éNcór—tjj«Dcic]\}}||“Œ
c}}Scc}}w©N)ÚETÚ_namespace_mapÚitems)ÚuriÚprefixs  úNH:\Change_password\venv_build\Lib\site-packages\et_xmlfile/incremental_tree.pyÚcurrent_global_nsmapr /s6€ä')×'8Ñ'8×'>Ñ'>Ó'@÷ Ù#˜˜Vˆ‰ ó ðùó s¢ 3có(—eZdZ                ddddddœd„Zy)ÚIncrementalTreeNTF)Úshort_empty_elementsÚnsmapÚ root_ns_onlyÚminimal_ns_onlyc óä—|sd}n|dvrtd|z«‚|sd}t||«5\}
} |dk(r5|s'|€1|j«dk7r| j«dvr |
d| ›d    «|d
k(r!tj|
|j
«nË|dk(rd } nd } |r d|vr td «‚|j «} ni} |r|| d<|s|    r3t|j
|| «} |    s|r| j|«|r|| d<tjj«Dcic]\}}||“Œ
}}}d|vr td«‚i}t|
|j
||| d || ¬«ddd«ycc}}w#1swYyxYw)a-
Write element tree to a file as XML.
 
        Arguments:
          *file_or_filename* -- file name or a file object opened for writing
 
          *encoding* -- the output encoding (default: US-ASCII)
 
          *xml_declaration* -- bool indicating if an XML declaration should be
                               added to the output. If None, an XML declaration
                               is added if encoding IS NOT either of:
                               US-ASCII, UTF-8, or Unicode
 
          *default_namespace* -- sets the default XML namespace (for "xmlns").
                                 Takes precedence over any default namespace
                                 provided in nsmap or
                                 xml.etree.ElementTree.register_namespace().
 
          *method* -- either "xml" (default), "html, "text", or "c14n"
 
          *short_empty_elements* -- controls the formatting of elements
                                    that contain no content. If True (default)
                                    they are emitted as a single self-closed
                                    tag, otherwise they are emitted as a pair
                                    of start/end tags
 
          *nsmap* -- a mapping of namespace prefixes to URIs. These take
                     precedence over any mappings registered using
                     xml.etree.ElementTree.register_namespace(). The
                     default_namespace argument, if supplied, takes precedence
                     over any default namespace supplied in nsmap. All supplied
                     namespaces will be declared on the root element, even if
                     unused in the document.
 
          *root_ns_only* -- bool indicating namespace declrations should only
                            be written on the root element.  This requires two
                            passes of the xml tree adding additional time to
                            the writing process. This is primarily meant to
                            mimic xml.etree.ElementTree's behaviour.
 
          *minimal_ns_only* -- bool indicating only namespaces that were used
                               to qualify elements or attributes should be
                               declared. All namespace declarations will be
                               written on the root element regardless of the
                               value of the root_ns_only arg. Requires two
                               passes of the xml tree adding additional time to
                               the writing process.
 
        Úxml)ÚtextrÚhtmlzunknown method %rúus-asciiNÚunicode)úutf-8rz<?xml version='1.0' encoding='z'?>
rFTzTFound None as default nsmap prefix in nsmap. Use "" as the default namespace prefix.ÚzxFound None as default nsmap prefix in nsmap registered with register_namespace. Use "" for the default namespace prefix.)Úis_htmlÚis_rootrÚ    new_nsmap) Ú
ValueErrorÚ _get_writerÚlowerrÚ_serialize_textÚ_rootÚcopyÚ _namespacesÚupdaterrÚ_serialize_ns_xml)ÚselfÚfile_or_filenameÚencodingÚxml_declarationÚdefault_namespaceÚmethodrrrrÚwriteÚdeclared_encodingrrrr    Ú global_nsmapÚ nsmap_scopes                  r
r,zIncrementalTree.write7sÆ€ñz؉FØ Ð2Ñ 2ÜÐ0°6Ñ9Ó:Ð :ÙØ!ˆHä Ð)¨8Ó 4ð>    Ñ8R¸Ð@QؘŠÙà#Ð+Ø Ÿ™Ó(¨IÒ5Ø)×/Ñ/Ó1Ð9NÑNòÒARÐTÔUؘÒÜ×"Ñ" 5¨$¯*©*Õ5à˜U’?Ø#‘Gà"GÙØ˜u‘}Ü(ðFóðð!&§
¡
£ ‘Ià "IÙ$Ø$5I˜b‘MÙ¡?ô!,ØŸ
™
Ø)Ø!ó!Iñ
+Ù ð&×,Ñ,¨UÔ3Ù,Ø,=˜I b™Mä35×3DÑ3D×3JÑ3JÓ3L÷ Ù$/ C¨F˜C‘K𠐠ñ ð˜<Ñ'Ü$ðWóðð! Ü!ØØ—J‘JØØ Ø#Ø Ø)=Ø'õ    ÷k>    ð>    ùóX ÷Y>    ð>    ús¨C1E&Ä E Ä&1E&Å E&Å&E/)NNNN)Ú__name__Ú
__module__Ú __qualname__r,©ór
r r 5s*„ð
ØØØð Bð"ØØØõBr4r cóf—t|«}|    d|vr|dz }    d|›}||vr ||vr|r||vr|S|dz }Œ)NréÚns)Úlen)r/Úglobal_prefixesÚ local_nsmapr*Úir    s      r
Ú_make_new_ns_prefixr<¼sc€ô      ˆKÓ€AØÐ$¨°;Ñ)>ð    
ˆQ‰ˆà
ؐaSˆà ˜+Ñ %ؘoÑ-á 6°Ñ#<ðˆMØ    ˆQ‰ˆð r4Fcóº—|j«D]\}}||k(sŒ ||vsŒ|}nt||¬«}|||<|||<|s|||<|dk7r|j|«|S)aAFind a prefix that doesn't conflict with the ns scope or create a new prefix
 
    This function mutates nsmap_scope, global_nsmap, new_namespace_prefixes and
    uri_to_prefix. It is intended to keep state in _serialize_ns_xml consistent
    while deduplicating the house keeping code or updating these dictionaries.
    )r9r)rr<Úadd)    rr/r.Únew_namespace_prefixesÚ uri_to_prefixÚ!for_default_namespace_attr_prefixÚ global_prefixÚ
global_urir    s             r
Ú_get_or_create_prefixrDÕs€ð$&2×%7Ñ%7Ó%9ò#Ñ!ˆ zØ *Ó  °kÒ!AØ"ˆFÙ ð#ô% [À,ÔOˆØ"ˆ VÑØ€KÑÙ ,à#ˆ cÑØ ‚Ø×"Ñ" 6Ô*Ø €Mr4có—|j«D]\}}||k(sŒ |dk7sŒ|cS|j«D]\}}||k(sŒ |dk7sŒ|cStjj|«}|r||vr|St    ||||«S)Nr)rrrÚgetr<)r*rr:r9Úprovided_default_namespacer    rs       r
Ú#_find_default_namespace_attr_prefixrHùs¤€ð—{‘{“}ò‰ ˆØ Ð#Ó #¨°"« ØŠMðð#×(Ñ(Ó*ò‰ ˆØ Ð#Ó #¨°"« ØŠMðô
× Ñ × "Ñ "Ð#4Ó 5€FÙ & Ñ%؈ ä Ø ØØØ"ó     ðr4c    ó"—g}|j«D]F\}}    t|tj«r |j}    |dddk(r“|ddj dd«}
    ||
d} | si|r|} nd|j«D]\} } | |
dk(sŒ| dk7sŒ| }n;|s"|j«}|j«}d}t|
d||||d¬«} | }| ›d|
d›}t|    tj«rQ|    jdddk7r |    j}    n2|    jddj dd«}
    ||
d} | ›d|
d›}    |j||    f«ŒI|||fS#t $r:|s"|j«}|j«}d}t|
d||||«} YŒ=wxYw#t$rtj|«YŒìwxYw#t $r9|s"|j«}|j«}d}t|
d||||«} YŒÐwxYw)    Nr6ú{ú}rTr)rAú:) rÚ
isinstancerÚQNamerÚrsplitÚKeyErrorr"rDÚ    TypeErrorÚ_raise_serialization_errorÚappend) ÚelemÚis_nsmap_scope_changedÚdefault_ns_attr_prefixr/r.r?r@Ú
item_partsÚkÚvÚ uri_and_namer    Ú    known_uris              r
Úprocess_attribsr\s€ð€JØ—
‘
“ óO"‰ˆˆ1Ü aœŸ™Ô "Ø—‘ˆAð2    -ؐ!ˆu˜Š|Ø   ˜uŸ|™|¨C°Ó3 ðØ*¨<¸©?Ñ;Fñ$Ù-Ø!7™à1<×1BÑ1BÓ1Dò<Ñ-˜F IØ(¨L¸©OÓ;ÀÈ"à Ø9?Р6Ù %ð<ñ
$:ð
/:×.>Ñ.>Ó.@  Ø0=×0BÑ0BÓ0D  Ø9=Р6Ü%:Ø ,¨Q¡Ø +Ø ,Ø 6Ø -ØBFô &˜Fð6<Ð2ؐh˜a  ¨Q¡Ð0Ð1ô aœŸ™Ô "؏v‰vbqˆz˜SÒ Ø—F‘F‘à Ÿv™v a b˜z×0Ñ0°°aÓ8 ðØ*¨<¸©?Ñ;Fð"h˜a  ¨Q¡Ð0Ð1Ø×ј1˜a˜&Ö!ð_O"ð` Ð-¨{Ð :Ð:øôQ òÙ1ð
'2×&6Ñ&6Ó&8˜ Ø(5×(:Ñ(:Ó(<˜ Ø15Ð.Ü2Ø$ Q™Ø#Ø$Ø.Ø%ó “FðûôXò    -Ü × )Ñ )¨!Ö ,ð    -ûô òÙ1ð
'2×&6Ñ&6Ó&8˜ Ø(5×(:Ñ(:Ó(<˜ Ø15Ð.Ü2Ø$ Q™Ø#Ø$Ø.Ø%ó ’FðúsUÁF(ÁE"Á'%F( F(ÂA    F(Ä5G Å"?F%Æ!F(Æ$F%Æ%F(Æ(G    ÇG    Ç ?HÈ Hc
 ó~—|j} |j} | tjur|d| z«d} d} ns| tjur|d| z«d} d} nP|    rRd}|j «}|j |    «t|    j««}|jd«d}d}n d}t«}|€>d|vr td«‚|j«Dcic]\}}||“Œ
}}}d|vrd||d<| €"|} | r©|tj| ««nŒd} t| tj«r | j}     | dd    d
k(r1| d    djd d    «}    ||d }|r |›d |d    ›} n|d    } nd|vr td«‚|d| z«|j(rt+|||||||«\}}}ng}|r¿g}t-|«D]$}||}|rd|z}nd}|j/||f«Œ&|rE|dj1|Dcgc]!\}}d|›dtj2|«›d‘Œ#c}}««nD|dj1|Dcgc]!\}}d|›dtj4|«›d‘Œ#c}}««|r‹|rE|dj1|Dcgc]!\}}d|›dtj2|«›d‘Œ#c}}««nD|dj1|Dcgc]!\}}d|›dtj4|«›d‘Œ#c}}««|r]|d«| j7«}| r.|dk(s|dk(r    || «n|tj| ««|tj8vrBd} n?| s t;|«s|s&|d«| r&|tj| ««n
d} |d«| |||| fScc}}w#t $r:|s"|j «}|j «}d}t#|d ||||«}YŒŒwxYw#t$$rtj&| «YŒwxYwcc}}wcc}}wcc}}wcc}}w)azWrite the opening tag (including self closing) and element text.
 
    Refer to _serialize_ns_xml for description of arguments.
 
    nsmap_scope should be an empty dictionary on first call. All nsmap prefixes
    must be strings with the default namespace prefix represented by "".
 
    eg.
    - <foo attr1="one">      (returns tag = 'foo')
    - <foo attr1="one">text  (returns tag = 'foo')
    - <foo attr1="one" />    (returns tag = None)
 
    Returns:
        tag:
            The tag name to be closed or None if no closing required.
        nsmap_scope:
            The current nsmap after any prefix to uri additions from this
            element. This is the input dict if unmodified or an updated copy.
        default_ns_attr_prefix:
            The prefix for the default namespace to use with attrs.
        uri_to_prefix:
            The current uri to prefix map after any uri to prefix additions
            from this element. This is the input dict if unmodified or an
            updated copy.
        next_remains_root:
            A bool indicating if the child element(s) should be treated as
            their own roots.
    z    <!--%s-->NFz<?%s?>TrzIFound None as a namespace prefix. Use "" as the default namespace prefix.rr6rJrKrrLú<cannot use non-qualified names with default_namespace optionú<zxmlns:Úxmlnsú z="ú"ú>ÚscriptÚstylez />)ÚtagrrÚCommentÚProcessingInstructionr"r$ÚsetÚkeysÚdiscardrrÚ _escape_cdatarMrNrOrPrDrQrRÚattribr\ÚsortedrSÚjoinÚ_escape_attrib_htmlÚ_escape_attribrÚ
HTML_EMPTYr8)r,rTr/r.rrrr@rVrÚkwargsrfrÚnext_remains_rootrUr?r    rrZrWÚns_attrsrXrYÚltags                        r
Úwrite_elem_startrwts†€ðR (‰(€CØ 9‰9€Dà
Œbj‰jÑÙ ˆk˜DÑ Ô!؈Ø!ÒØ     ”×(Ñ(Ñ    (Ù ˆh˜‰oÔØˆØ!Òá Ø%)Ð "Ø%×*Ñ*Ó,ˆKØ × Ñ ˜yÔ )Ü%(¨¯©Ó)9Ó%:Ð "Ø "× *Ñ *¨5Ô 1à ˆMØ%)Ñ "à%*Ð "Ü%(£UÐ "à Ð  Ø{Ñ"Ü Ø_óðð=H×<MÑ<MÓ<O×P©[¨V°S˜S &™[ÐPˆMÑPؐ[Ñ ð24 ˜k¨"™oÑ.à ˆ;ð!(Ð ÚÙ”b×&Ñ& tÓ,Ö-à %Рܘ#œrŸx™xÔ(Ø—h‘hð/ 3ð$r˜7˜c’>Ø#& q r 7§>¡>°#°qÓ#9LðØ!.¨|¸A©Ñ!?˜ñ"Ø!' ¨¨,°q©/Ð):Ð;™à*¨1™o™Ø˜;Ñ&Ü$ØVóðñ #˜‘)Ô à{Š{ÜBQØØ*Ø*ØØ Ø*Ø!óCÑ?
Ð2±Kð 
Ù%ؐÜР6Ó7ò,AØ# A™AÙØ$ q™L™à#˜Ø—O‘O Q¨ FÕ+ð ,ñÙ˜"Ÿ'™'ÐU]×"^ÉTÈQÐPQ Q q c¨¬B×,BÑ,BÀ1Ó,EÐ+FÀaÒ#HÓ"^Ó_Õ`á˜"Ÿ'™'ÐPX×"YÉÈÈ1 Q q c¨¬B×,=Ñ,=¸aÓ,@Ð+AÀÒ#CÓ"YÓZÔ[ÙÙÙ˜"Ÿ'™'ÐU_×"`ÉTÈQÐPQ Q q c¨¬B×,BÑ,BÀ1Ó,EÐ+FÀaÒ#HÓ"`ÓaÕbá˜"Ÿ'™'ÐPZ×"[ÉÈÈ1 Q q c¨¬B×,=Ñ,=¸aÓ,@Ð+AÀÒ#CÓ"[Ó\Ô]Ùِc”
Ø—y‘y“{ÙؘxÒ'¨4°7ª?Ù˜d áœb×.Ñ.¨tÓ4Ô5Øœ2Ÿ=™=Ñ(Ø‘CÙœ˜TœÑ*>ِc”
ÙÙœ"×*Ñ*¨4Ó0Õ1àÙe” à ØØØØð  ðùóeQøôL$òÙ5ð
+6×*:Ñ*:Ó*<˜KØ,9×,>Ñ,>Ó,@˜MØ59Ð2Ü!6Ø(¨™OØ'Ø(Ø2Ø)ó "›ðûô0ò 3Ü×-Ñ-¨c×2ð 3üó6#_ùã"Yùó#aùã"[sTÃ# N6Å PÅ*N<Å2"PÈ &P'É&P-Ê&P3Ë&P9Î<?O?Ï;PÏ>O?Ï?PÐP$Ð#P$c
óò—t||||||||||    ¬«
\} }}}} |D]} t|| ||||| ||d¬«
Œ| r |d| ›d«|jr&|tj|j««yy)aSerialize an element or tree using 'write' for output.
 
    Args:
        write:
            A function to write the xml to its destination.
        elem:
            The element to serialize.
        nsmap_scope:
            The current prefix to uri mapping for this element. This should be
            an empty dictionary for the root element. Additional namespaces are
            progressively added using the new_nsmap arg.
        global_nsmap:
            A dict copy of the globally registered _namespace_map in uri to
            prefix form
        short_empty_elements:
          Controls the formatting of elements that contain no content. If True
          (default) they are emitted as a single self-closed tag, otherwise
          they are emitted as a pair of start/end tags.
        is_html:
            Set to True to serialize as HTML otherwise XML.
        is_root:
            Boolean indicating if this is a root element.
        uri_to_prefix:
            Current state of the mapping of uri to prefix.
        default_ns_attr_prefix:
        new_nsmap:
            New prefix -> uri mapping to be applied to this element.
    )rNz</rc)rwr%Útailrrl)r,rTr/r.rrrr@rVrrsrfrtÚes              r
r%r%6s®€ô^    Ø Ø ØØØØØØØØô     ñ Ø ØØØØðò 
ˆÜØ Ø Ø Ø Ø  Ø Ø Ø Ø "Øö     
ð 
ñ Ù 3%qˆkÔØ ‡y‚yÙ Œb×јtŸy™yÓ)Õ*ðr4c#óîK—t«}t«}|j«D]É}|j}t|t«r||vr•|j |«|df–—n}t|t j«r(|j}||vrS|j |«|df–—n;|9|t jur'|t jurt j|«|j«D]›\}}t|t j«r |j}||vr|j |«|df–—t|t j«sŒb|j|vsŒq|j |j«|jdf–—Œ|j}t|t j«sŒ|j|vsŒŸ|j |j«|jdf–—ŒÌy­w)z/Iterate through all the qualified names in elemTNF) riÚiterrfrMÚstrr>rrNrrhrgrRr)rTÚseen_el_qnamesÚseen_other_qnamesÚ    this_elemrfÚkeyÚvaluers        r
Ú _qnames_iterrƒ„s•èø€ä“U€NÜ›ÐØ—Y‘Y“[ó"'ˆ    Øm‰mˆÜ cœ3Ô Ø˜.Ñ(Ø×"Ñ" 3Ô'ؘ4i“Ü ˜œRŸX™XÔ &Ø—(‘(ˆCؘ.Ñ(Ø×"Ñ" 3Ô'ؘ4i“à ˆOØœ2×3Ñ3Ñ3Øœ2Ÿ:™:Ñ%ä × )Ñ )¨#Ô .à#Ÿ/™/Ó+ò
    ,‰JˆCÜ˜#œrŸx™xÔ(Ø—h‘hØÐ+Ñ+Ø!×%Ñ% cÔ*ؘ5jÒ ä˜%¤§¡Õ*Ø—:‘:Ð%6Ò6Ø%×)Ñ)¨%¯*©*Ô5ØŸ*™* eÐ+Ó+ð
    ,ð~‰~ˆÜ dœBŸH™HÖ %؏y‰yР1Ó1Ø!×%Ñ% d§i¡iÔ0Ø—i‘i Ð&Ô&ñE"'ùs‚EG5ÅG5Å!AG5Æ6G5Ç/G5có—|€i}i}i}|j«Dcic]\}}||“Œ
}}}|d||<n d|vrd||d<ttjj    ««}d}    d}
t |«D]Â\} }     | dddk(r°| ddj dd«} |j| d«}|€d|j| d«}|||vr6tjj| d«}|||vrt||||«}|s| r| d||<||| d<| s#|s!|
st| d||||«}
| d||
<n| rd}    ŒÄd|vr |    r td    «‚|jd
d«|Scc}}w#t$rtj| «YŒwxYw) zGFind all namespaces used in the document and return a prefix to uri mapNrFr6rJrKrTr^r)rrirrÚvaluesrƒrOrFr<rHrQrRrÚpop)rTr*rÚ    out_nsmapÚseen_uri_to_prefixr    rÚlocal_prefix_mapr9Ú has_unqual_elÚdefault_namespace_attr_prefixÚqnameÚis_elrZs              r
r#r#­s€ð  €}؈à€IàÐð8=·{±{³}×E© ¨°˜˜V™ ÐEÐÑEØÐ$Ø.0ÐÐ*Ò+Ø     ˆu‰à&(И˜r™Ñ#äœ"×+Ñ+×2Ñ2Ó4Ó5€OØ€MØ$(Ð!Ü$ TÓ*ò(1‰ ˆˆuð'    1ؐRaˆy˜CÒØ$ Q R˜y×/Ñ/°°QÓ7 à+×/Ñ/° ¸Q±Ó@Ø>Ø-×1Ñ1°,¸q±/ÓBFؐ~¨°9Ñ)<Ü!#×!2Ñ!2×!6Ñ!6°|ÀA±Ó!G˜Ø!˜>¨V°yÑ-@Ü%8Ø )Ø /Ø %Ø 1ó    &˜Fñ ¡Ø,8¸©O˜     &Ñ)Ø>DÐ*¨<¸©?Ñ;á¡VÑ4Qô5XØ$ Q™Ø!ØØ'Ø)ó 5Ð1ð@LÈA¹IÐ;Ò<ñ Ø$(MøðM(1ðT
ˆY™=äØ Jó
ð    
ð ‡MM%˜ÔØ Ðùó{Føôbò    1Ü × )Ñ )¨%× 0ð    1úsœ E Á=B<E&Å&FÆFT)r)r*rrrrÚtree_clsc ó¼—|dk(rtj«ntj«}
|    |«j|
||||||||¬«    |
j    «S)a
Generate string representation of XML element.
 
    All subelements are included.  If encoding is "unicode", a string
    is returned. Otherwise a bytestring is returned.
 
    *element* is an Element instance, *encoding* is an optional output
    encoding defaulting to US-ASCII, *method* is an optional output which can
    be one of "xml" (default), "html", "text" or "c14n", *default_namespace*
    sets the default XML namespace (for "xmlns").
 
    Returns an (optionally) encoded string containing the XML data.
 
    r©r)r*r+rrrr)ÚioÚStringIOÚBytesIOr,Úgetvalue) Úelementr(r+r)r*rrrrrŽÚstreams            r
Útostringr—ûs`€ð4'¨)Ò3ŒR[‰[Œ]¼¿¹»€FÙ ˆWÓ×ÑØØØ'Ø+ØØ1ØØ!Ø'ðô
ð ?‰?Ó Ðr4c ót—g}
tj|
«} |    |«j| ||||||||¬«    |
S)Nr)rÚ_ListDataStreamr,) r•r(r+r)r*rrrrrŽÚlstr–s             r
Ú tostringlistr›$sS€ð €CÜ × Ñ  Ó $€FÙ ˆWÓ×ÑØØØ'Ø+ØØ1ØØ!Ø'ðô
ð €Jr4c ó,—t||||||||||    ¬«
S)zÞtostring with options that produce the same results as xml.etree.ElementTree.tostring
 
    root_ns_only=True is a bit slower than False as it needs to traverse the
    tree one more time to collect all the namespaces.
    )    r(r+r)r*rrrrrŽ)r—)
r•r(r+r)r*rrrrrŽs
          r
Úcompat_tostringrAs/€ô$ ØØØØ'Ø+Ø1ØØ!Ø'Øô ð r4c#ó~K—    |j}|j«dk(r|t|dd«xsdf–—ytj«5}t |t j«r|}n‘t |t j«r1t j|«}|j|j«nFt j«}d„|_ ||_    |j|_ |j|_t j ||dd¬«}|j|j«|j|f–—ddd«y#t$rYŒXwxYw#1swYyxYw#t$rM|j«dk(rd}t#|d|d¬    «5}|j|f–—ddd«Yy#1swYYyxYwwxYw­w)
Nrr(rcó—y)NTr3r3r4r
ú<lambda>z_get_writer.<locals>.<lambda>…sr4Úxmlcharrefreplaceú
)r(ÚerrorsÚnewlineÚw)r(r£)r,rÚgetattrÚ
contextlibÚ    ExitStackrMr‘ÚBufferedIOBaseÚ    RawIOBaseÚBufferedWriterÚcallbackÚdetachÚwritableÚseekableÚtellÚAttributeErrorÚ TextIOWrapperÚopen)r'r(r,ÚstackÚfiles     r
rrds èø€ð-+Ø ×&Ñ&ˆð >‰>Ó ˜yÒ (àœÐ!1°:¸tÓDÒOÈÐOÓ Oô×%Ñ%Ó'ð +¨5ÜÐ.´×0AÑ0AÔBØ+‘DÜР0´"·,±,Ô?Ü×,Ñ,Ð-=Ó>Dð—N‘N 4§;¡;Õ/ô×,Ñ,Ó.DÙ$0D”MØ!&D”Jðð)9×(AÑ(A˜œ Ø$4×$9Ñ$9˜œ    ô×'Ñ'¨Ø19Ø/BØ04ô6ð —‘˜tŸ{™{Ô+Ø—j‘j (Ð*Ò*÷9 +ð +øô&*òÙðú÷' +ð +ûô ò'à >‰>Ó ˜yÒ (؈HÜ Ð" C°(Ø,ô.ð    'Ø15Ø—*‘*˜hÐ&Ò &÷    '÷    'ó    'úð    'üsƒ‚F=„ E$=F=Á B EÃ"E    Ã<AEÅ    F=Å        EÅEÅEÅEÅE!ÅF=Å$-F:ÆF,Æ"F:Æ*F=Æ,F6    Æ1F:Æ4F=Æ6F:Æ:F=)NN)Fr)FNNN)r§r‘Úxml.etree.ElementTreeÚetreeÚ ElementTreerr r r<rDrHr\rwr%rƒr#r—r›rÚcontextmanagerrr3r4r
ú<module>rºs+ðóRÛ    ç"Ð"òô Db—n‘nôDðTØó    ð>',ó !ðR $ó ò<Z;ðH ØØØóðR ØØØóK+ò\&'ðVØ
óKð`Ø ð&ð
ØØØ
ØØØ ô&ðVØ ðð
ØØØ
ØØØ ôð>Ø ðð
ØØØ
ØØØ ôðF ×Ññ0+óñ0+r4