[Spambayes] PEP-0263 and resourcepackage (ui_html.py)

Meyer, Tony T.A.Meyer at massey.ac.nz
Tue May 6 12:52:49 EDT 2003


> > Either (b), or, as a workaround, write something to patch the 
> > generated file.
> Variation on (b) - get resourcepackage fixed to use \x 
> escapes in strings rather than literal binary characters 
> >127. I believe this is the correct answer (Python's default 
> encoding has always been 7-bit ASCII, although pre-2.3, 8-bit 
> data in strings was accepted).

I submitted a feature request on resource package to get this fixed, and
then there was some discussion about the correct encoding on c.l.p.

The /x escapes method was suggested, but the resource package author
didn't like the idea much because it would add significantly to the size
of the files.

It seems that resource package will be updated to add an encoding
comment (latin1) at some point in the near future.

In the meantime, I'll add the comment to our resource packaged files so
that we can avoid the depreciation warnings.

=Tony Meyer



More information about the Spambayes mailing list