Re: [xml] Fwd: Python file should specify encoding

Bill's already fixed this one:


On Thu, 2004-07-15 at 08:20, Mike Hommey wrote:

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 should specify encoding

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

/usr/lib/python2.3/xml/sax/ DeprecationWarning: Non-ASCII
character '\xe9' in file /usr/lib/python2.3/site-packages/ on
line 36, but no encoding declared; see
for details

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

The report also attached the following patch :

----- Patch -----

diff -Nrud libxml2-2.6.11.orig/python/ libxml2-2.6.11/python/
--- libxml2-2.6.11.orig/python/ 2004-07-15 11:16:04.000000000 +0200
+++ libxml2-2.6.11/python/      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
----- End Patch -----

xml mailing list, project page
xml gnome org

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