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
313b2ad1
Kaydet (Commit)
313b2ad1
authored
Ara 10, 2011
tarafından
Florent Xicluna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix imports in xml.dom.
üst
0a9dd2f1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
test_minidom.py
Lib/test/test_minidom.py
+1
-1
pulldom.py
Lib/xml/dom/pulldom.py
+1
-5
No files found.
Lib/test/test_minidom.py
Dosyayı görüntüle @
313b2ad1
...
@@ -47,7 +47,7 @@ class MinidomTest(unittest.TestCase):
...
@@ -47,7 +47,7 @@ class MinidomTest(unittest.TestCase):
def
checkWholeText
(
self
,
node
,
s
):
def
checkWholeText
(
self
,
node
,
s
):
t
=
node
.
wholeText
t
=
node
.
wholeText
self
.
confirm
(
t
==
s
,
"looking for
%
s, found
%
s"
%
(
repr
(
s
),
repr
(
t
)
))
self
.
confirm
(
t
==
s
,
"looking for
%
r, found
%
r"
%
(
s
,
t
))
def
testParseFromFile
(
self
):
def
testParseFromFile
(
self
):
with
open
(
tstfile
)
as
file
:
with
open
(
tstfile
)
as
file
:
...
...
Lib/xml/dom/pulldom.py
Dosyayı görüntüle @
313b2ad1
import
xml.sax
import
xml.sax
import
xml.sax.handler
import
xml.sax.handler
import
types
START_ELEMENT
=
"START_ELEMENT"
START_ELEMENT
=
"START_ELEMENT"
END_ELEMENT
=
"END_ELEMENT"
END_ELEMENT
=
"END_ELEMENT"
...
@@ -334,10 +333,7 @@ def parse(stream_or_string, parser=None, bufsize=None):
...
@@ -334,10 +333,7 @@ def parse(stream_or_string, parser=None, bufsize=None):
return
DOMEventStream
(
stream
,
parser
,
bufsize
)
return
DOMEventStream
(
stream
,
parser
,
bufsize
)
def
parseString
(
string
,
parser
=
None
):
def
parseString
(
string
,
parser
=
None
):
try
:
from
io
import
StringIO
from
io
import
StringIO
except
ImportError
:
from
io
import
StringIO
bufsize
=
len
(
string
)
bufsize
=
len
(
string
)
buf
=
StringIO
(
string
)
buf
=
StringIO
(
string
)
...
...
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