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
bcdafa44
Kaydet (Commit)
bcdafa44
authored
May 20, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove html package and fix test_htmlparser.
üst
b1527abb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
__init__.py
Lib/html/__init__.py
+0
-1
entities.py
Lib/html/entities.py
+0
-0
parser.py
Lib/html/parser.py
+0
-0
test_htmlparser.py
Lib/test/test_htmlparser.py
+5
-5
No files found.
Lib/html/__init__.py
deleted
100644 → 0
Dosyayı görüntüle @
b1527abb
# This directory is a Python package.
Lib/html/entities.py
deleted
100644 → 0
Dosyayı görüntüle @
b1527abb
This diff is collapsed.
Click to expand it.
Lib/html/parser.py
deleted
100644 → 0
Dosyayı görüntüle @
b1527abb
This diff is collapsed.
Click to expand it.
Lib/test/test_htmlparser.py
Dosyayı görüntüle @
bcdafa44
"""Tests for HTMLParser.py."""
import
html.p
arser
import
HTMLP
arser
import
pprint
import
unittest
from
test
import
test_support
class
EventCollector
(
html
.
p
arser
.
HTMLParser
):
class
EventCollector
(
HTMLP
arser
.
HTMLParser
):
def
__init__
(
self
):
self
.
events
=
[]
self
.
append
=
self
.
events
.
append
html
.
p
arser
.
HTMLParser
.
__init__
(
self
)
HTMLP
arser
.
HTMLParser
.
__init__
(
self
)
def
get_events
(
self
):
# Normalize the list of events so that buffer artefacts don't
...
...
@@ -88,10 +88,10 @@ class TestCaseBase(unittest.TestCase):
def
_parse_error
(
self
,
source
):
def
parse
(
source
=
source
):
parser
=
html
.
p
arser
.
HTMLParser
()
parser
=
HTMLP
arser
.
HTMLParser
()
parser
.
feed
(
source
)
parser
.
close
()
self
.
assertRaises
(
html
.
p
arser
.
HTMLParseError
,
parse
)
self
.
assertRaises
(
HTMLP
arser
.
HTMLParseError
,
parse
)
class
HTMLParserTestCase
(
TestCaseBase
):
...
...
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