[xml] Fwd: Python file drv_libxml2.py should specify encoding



Hi,

I received the following bug report (debian bug #259526) :

----- Forwarded message from Kai Weber <kai weber glorybox de> -----
From: Kai Weber <kai weber glorybox de>
Subject: [xml/sgml-pkgs] Bug#259526: libxml2-python2.3: Python file drv_libxml2.py should specify encoding

The drv_libxml2.py should specify a file encoding. Else it sends every
time this deprecation warning:

/usr/lib/python2.3/xml/sax/__init__.py:105: DeprecationWarning: Non-ASCII
character '\xe9' in file /usr/lib/python2.3/site-packages/drv_libxml2.py on
line 36, but no encoding declared; see http://www.python.org/peps/pep-0263.html
for details

----- End forwarded message -----

The report also attached the following patch :

----- Patch -----

diff -Nrud libxml2-2.6.11.orig/python/drv_libxml2.py libxml2-2.6.11/python/drv_libxml2.py
--- libxml2-2.6.11.orig/python/drv_libxml2.py   2004-07-15 11:16:04.000000000 +0200
+++ libxml2-2.6.11/python/drv_libxml2.py        2004-07-15 11:17:51.000000000 +0200
@@ -1,3 +1,4 @@
+# -*- coding: latin1 -*-
 """ A SAX2 driver for libxml2, on top of it's XmlReader API
 
 USAGE
----- End Patch -----

Mike



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]