[Pkg-mozext-commits] [adblock-plus] 146/464: Removed duplicate statement
David Prévot
taffit at moszumanska.debian.org
Tue Jul 22 20:44:11 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository adblock-plus.
commit 4f3760242158ba502049c9ed755e8cf115d83684
Author: Wladimir Palant <trev at adblockplus.org>
Date: Fri May 13 16:31:50 2011 +0200
Removed duplicate statement
---
localeTools.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/localeTools.py b/localeTools.py
index ee0aaa7..36fce9b 100644
--- a/localeTools.py
+++ b/localeTools.py
@@ -14,6 +14,7 @@ def parseDTDString(data, path):
result = {}
parser = ParserCreate()
parser.UseForeignDTD(True)
+ parser.SetParamEntityParsing(XML_PARAM_ENTITY_PARSING_ALWAYS)
def ExternalEntityRefHandler(context, base, systemId, publicId):
subparser = parser.ExternalEntityParserCreate(context, 'utf-8')
@@ -23,8 +24,6 @@ def parseDTDString(data, path):
def EntityDeclHandler(entityName, is_parameter_entity, value, base, systemId, publicId, notationName):
result[entityName] = value
- parser.UseForeignDTD(True)
- parser.SetParamEntityParsing(XML_PARAM_ENTITY_PARSING_ALWAYS)
parser.ExternalEntityRefHandler = ExternalEntityRefHandler
parser.EntityDeclHandler = EntityDeclHandler
parser.Parse('<!DOCTYPE root SYSTEM "foo"><root/>', True)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/adblock-plus.git
More information about the Pkg-mozext-commits
mailing list