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
3b271054
Kaydet (Commit)
3b271054
authored
Agu 17, 2006
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use explicit relative import to make this work again.
üst
ba205d69
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
__init__.py
Lib/xml/sax/__init__.py
+3
-3
saxutils.py
Lib/xml/sax/saxutils.py
+2
-2
xmlreader.py
Lib/xml/sax/xmlreader.py
+3
-3
No files found.
Lib/xml/sax/__init__.py
Dosyayı görüntüle @
3b271054
...
...
@@ -19,9 +19,9 @@ xmlreader -- Base classes and constants which define the SAX 2 API for
expatreader -- Driver that allows use of the Expat parser with SAX.
"""
from
xmlreader
import
InputSource
from
handler
import
ContentHandler
,
ErrorHandler
from
_exceptions
import
SAXException
,
SAXNotRecognizedException
,
\
from
.
xmlreader
import
InputSource
from
.
handler
import
ContentHandler
,
ErrorHandler
from
.
_exceptions
import
SAXException
,
SAXNotRecognizedException
,
\
SAXParseException
,
SAXNotSupportedException
,
\
SAXReaderNotAvailable
...
...
Lib/xml/sax/saxutils.py
Dosyayı görüntüle @
3b271054
...
...
@@ -4,8 +4,8 @@ convenience of application and driver writers.
"""
import
os
,
urlparse
,
urllib
,
types
import
handler
import
xmlreader
from
.
import
handler
from
.
import
xmlreader
try
:
_StringTypes
=
[
types
.
StringType
,
types
.
UnicodeType
]
...
...
Lib/xml/sax/xmlreader.py
Dosyayı görüntüle @
3b271054
"""An XML Reader is the SAX 2 name for an XML parser. XML Parsers
should be based on this code. """
import
handler
from
.
import
handler
from
_exceptions
import
SAXNotSupportedException
,
SAXNotRecognizedException
from
.
_exceptions
import
SAXNotSupportedException
,
SAXNotRecognizedException
# ===== XMLREADER =====
...
...
@@ -113,7 +113,7 @@ class IncrementalParser(XMLReader):
XMLReader
.
__init__
(
self
)
def
parse
(
self
,
source
):
import
saxutils
from
.
import
saxutils
source
=
saxutils
.
prepare_input_source
(
source
)
self
.
prepareParser
(
source
)
...
...
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