[Lxml-checkins] r51180 - in lxml/trunk: . src/lxml

scoder at codespeak.net scoder at codespeak.net
Fri Feb 1 14:54:28 CET 2008


Author: scoder
Date: Fri Feb  1 14:54:27 2008
New Revision: 51180

Modified:
   lxml/trunk/   (props changed)
   lxml/trunk/src/lxml/dtd.pxi
Log:
 r3390 at delle:  sbehnel | 2008-02-01 14:52:59 +0100
 handle unicode URLs in DTD(), just in case


Modified: lxml/trunk/src/lxml/dtd.pxi
==============================================================================
--- lxml/trunk/src/lxml/dtd.pxi	(original)
+++ lxml/trunk/src/lxml/dtd.pxi	Fri Feb  1 14:54:27 2008
@@ -31,7 +31,8 @@
         self._c_dtd = NULL
         _Validator.__init__(self)
         if file is not None:
-            if python._isString(file):
+            if _isString(file):
+                file = _encodeFilename(file)
                 self._error_log.connect()
                 self._c_dtd = xmlparser.xmlParseDTD(NULL, _cstr(file))
                 self._error_log.disconnect()


More information about the lxml-checkins mailing list