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
456ab1d2
Commit
456ab1d2
authored
May 06, 2004
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Swap public and system ID in start_doctype_decl. Fixes #780300.
parent
8b3e871a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
Doc/whatsnew/whatsnew24.tex
Doc/whatsnew/whatsnew24.tex
+4
-0
Lib/xml/sax/expatreader.py
Lib/xml/sax/expatreader.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Doc/whatsnew/whatsnew24.tex
View file @
456ab1d2
...
...
@@ -561,6 +561,10 @@ changes to your code:
\item
\function
{
dircache.listdir()
}
now passes exceptions to the caller
instead of returning empty lists.
\item
\function
{
LexicalHandler.startDTD
}
used to receive public and system ID
in the wrong order. This has been corrected; applications relying on the
wrong order need to be fixed.
\end{itemize}
...
...
Lib/xml/sax/expatreader.py
View file @
456ab1d2
...
...
@@ -361,7 +361,7 @@ class ExpatParser(xmlreader.IncrementalParser, xmlreader.Locator):
def
end_namespace_decl
(
self
,
prefix
):
self
.
_cont_handler
.
endPrefixMapping
(
prefix
)
def
start_doctype_decl
(
self
,
name
,
pubid
,
sys
id
,
has_internal_subset
):
def
start_doctype_decl
(
self
,
name
,
sysid
,
pub
id
,
has_internal_subset
):
self
.
_lex_handler_prop
.
startDTD
(
name
,
pubid
,
sysid
)
def
unparsed_entity_decl
(
self
,
name
,
base
,
sysid
,
pubid
,
notation_name
):
...
...
Misc/NEWS
View file @
456ab1d2
...
...
@@ -306,6 +306,9 @@ Extension modules
Library
-------
-
Bug
#
780300
:
Swap
public
and
system
ID
in
LexicalHandler
.
startDTD
.
Applications
relying
on
the
wrong
order
need
to
be
corrected
.
-
Bug
#
926075
:
Fixed
a
bug
that
returns
a
wrong
pattern
object
for
a
string
or
unicode
object
in
sre
.
compile
()
when
a
different
type
pattern
with
the
same
value
exists
.
...
...
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