S
Skip Montanaro
I wrote a simple codec which strips accents from latin-1 characters (e.g.,
maps 'é' to 'e'). If it lives in a package how do I refer to it? For
example, what should this statement look like
x = unicode(x, "latin1").encode("latscii")
if latscii.py lives in the spambayes package? This seems to work:
x = unicode(x, "latin1").encode("spambayes.latscii")
but is that the right way to do it?
Thx,
Skip
maps 'é' to 'e'). If it lives in a package how do I refer to it? For
example, what should this statement look like
x = unicode(x, "latin1").encode("latscii")
if latscii.py lives in the spambayes package? This seems to work:
x = unicode(x, "latin1").encode("spambayes.latscii")
but is that the right way to do it?
Thx,
Skip