Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
cb5c80f6
Commit
cb5c80f6
authored
Dec 07, 2007
by
Fred Drake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rename markupbase to _markupbase
parent
15c32549
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Lib/HTMLParser.py
Lib/HTMLParser.py
+3
-3
Lib/_markupbase.py
Lib/_markupbase.py
+1
-1
Lib/sgmllib.py
Lib/sgmllib.py
+3
-3
No files found.
Lib/HTMLParser.py
View file @
cb5c80f6
...
...
@@ -8,7 +8,7 @@
# and CDATA (character data -- only end tags are special).
import
markupbase
import
_
markupbase
import
re
# Regular expressions used for parsing
...
...
@@ -64,7 +64,7 @@ class HTMLParseError(Exception):
return result
class HTMLParser(markupbase.ParserBase):
class HTMLParser(
_
markupbase.ParserBase):
"""Find tags and other markup and call handler functions.
Usage:
...
...
@@ -96,7 +96,7 @@ class HTMLParser(markupbase.ParserBase):
self.rawdata = ''
self.lasttag = '
???
'
self.interesting = interesting_normal
markupbase.ParserBase.reset(self)
_
markupbase.ParserBase.reset(self)
def feed(self, data):
"""Feed data to the parser.
...
...
Lib/markupbase.py
→
Lib/
_
markupbase.py
View file @
cb5c80f6
...
...
@@ -28,7 +28,7 @@ class ParserBase:
def __init__(self):
if self.__class__ is ParserBase:
raise RuntimeError(
"markupbase.ParserBase must be subclassed")
"
_
markupbase.ParserBase must be subclassed")
def error(self, message):
raise NotImplementedError(
...
...
Lib/sgmllib.py
View file @
cb5c80f6
...
...
@@ -9,7 +9,7 @@
# not supported at all.
import
markupbase
import
_
markupbase
import
re
__all__
=
[
"SGMLParser"
,
"SGMLParseError"
]
...
...
@@ -52,7 +52,7 @@ class SGMLParseError(RuntimeError):
# chunks). Entity references are passed by calling
# self.handle_entityref() with the entity reference as argument.
class
SGMLParser
(
markupbase
.
ParserBase
):
class
SGMLParser
(
_
markupbase
.
ParserBase
):
# Definition of entities -- derived classes may override
entity_or_charref
=
re
.
compile
(
'&(?:'
'([a-zA-Z][-.a-zA-Z0-9]*)|#([0-9]+)'
...
...
@@ -71,7 +71,7 @@ class SGMLParser(markupbase.ParserBase):
self
.
lasttag
=
'???'
self
.
nomoretags
=
0
self
.
literal
=
0
markupbase
.
ParserBase
.
reset
(
self
)
_
markupbase
.
ParserBase
.
reset
(
self
)
def
setnomoretags
(
self
):
"""Enter literal mode (CDATA) till EOF.
...
...
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