[spambayes-bugs] [ spambayes-Bugs-932149 ] sb_dbexpimp.py fails to
import what it exported
SourceForge.net
noreply at sourceforge.net
Thu Apr 8 22:06:39 EDT 2004
Bugs item #932149, was opened at 2004-04-09 14:01
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=932149&group_id=61702
Category: hammie
Group: Binary 1.0a9 (0.9)
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Leonid (leobru)
Assigned to: Nobody/Anonymous (nobody)
Summary: sb_dbexpimp.py fails to import what it exported
Initial Comment:
There is a line in a flat file exported using 1.0a9
sb_dbexpimp.py:
%D0%C9%CB%D4%CF%C7%D2%C1%CD%CD%D9%2C`2`0`
(this is a Russian word in KOI-8 encoding)
an attempt to import a file containing this line fails with
Traceback (most recent call last):
File "/usr/home/leob/opt/bin/sb_dbexpimp.py", line
268, in ?
runImport(dbFN, useDBM, newDBM, flatFN)
File "/usr/home/leob/opt/bin/sb_dbexpimp.py", line
200, in runImport
word = uunquote(word)
File "/usr/home/leob/opt/bin/sb_dbexpimp.py", line
116, in uunquote
return unicode(urllib.unquote(s), 'utf-8')
UnicodeError: UTF-8 decoding error: invalid data
This is a regression from 1.0a7.
----------------------------------------------------------------------
>Comment By: Tony Meyer (anadelonbrin)
Date: 2004-04-09 14:06
Message:
Logged In: YES
user_id=552329
The sb_dbexpimp script has undergone a major change (to
use csv as the 'interchange' format) since 1.0a9, and this
should have resolved this problem. If you're using Python 2.3,
you should be able to simply use the script from cvs;
otherwise a new release should be out soon, which will
include the revised script.
Please reopen if this still occurs with the 1.0b1/CVS
sb_dbexpimp.py script.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=932149&group_id=61702
More information about the Spambayes-bugs
mailing list