Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
2dbc9cd9
Kaydet (Commit)
2dbc9cd9
authored
May 02, 2004
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Do not use the default namespace for attributes.
Fixes
http://bugs.debian.org/229885
üst
520c3414
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
16 deletions
+12
-16
xmllib.py
Lib/xmllib.py
+12
-16
No files found.
Lib/xmllib.py
Dosyayı görüntüle @
2dbc9cd9
...
@@ -6,8 +6,7 @@ import re
...
@@ -6,8 +6,7 @@ import re
import
string
import
string
import
warnings
import
warnings
warnings
.
warn
(
"The xmllib module is obsolete. Use xml.sax instead."
,
warnings
.
warn
(
"The xmllib module is obsolete. Use xml.sax instead."
,
DeprecationWarning
)
DeprecationWarning
)
del
warnings
del
warnings
version
=
'0.3'
version
=
'0.3'
...
@@ -641,20 +640,17 @@ class XMLParser:
...
@@ -641,20 +640,17 @@ class XMLParser:
aprefix
,
key
=
res
.
group
(
'prefix'
,
'local'
)
aprefix
,
key
=
res
.
group
(
'prefix'
,
'local'
)
if
self
.
__map_case
:
if
self
.
__map_case
:
key
=
key
.
lower
()
key
=
key
.
lower
()
if
aprefix
is
None
:
if
aprefix
is
not
None
:
aprefix
=
''
ans
=
None
ans
=
None
for
t
,
d
,
nst
in
self
.
stack
:
for
t
,
d
,
nst
in
self
.
stack
:
if
aprefix
in
d
:
if
aprefix
in
d
:
ans
=
d
[
aprefix
]
ans
=
d
[
aprefix
]
if
ans
is
None
:
if
ans
is
None
and
aprefix
!=
''
:
ans
=
self
.
__namespaces
.
get
(
aprefix
)
ans
=
self
.
__namespaces
.
get
(
aprefix
)
if
ans
is
not
None
:
if
ans
is
not
None
:
key
=
ans
+
' '
+
key
key
=
ans
+
' '
+
key
else
:
elif
aprefix
!=
''
:
key
=
aprefix
+
':'
+
key
key
=
aprefix
+
':'
+
key
elif
ns
is
not
None
:
key
=
ns
+
' '
+
key
nattrdict
[
key
]
=
val
nattrdict
[
key
]
=
val
attrnamemap
[
key
]
=
okey
attrnamemap
[
key
]
=
okey
attrdict
=
nattrdict
attrdict
=
nattrdict
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment