[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: l10n-kde4/scripts/pology/sieve
From: Sébastien Renard <sebastien.renard () digitalfox ! homeip ! net>
Date: 2008-04-05 16:44:25
Message-ID: 1207413865.757247.30349.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 793942 by renard:
Proper encoding of list display
M +4 -2 check_spell.py
--- trunk/l10n-kde4/scripts/pology/sieve/check_spell.py #793941:793942
@@ -120,7 +120,9 @@
def finalize (self):
if self.list is not None:
- print "\n".join(self.list)
+ #print "\n".join()
+ print self.encoding
+ print "\n".join([i.decode(self.encoding) for i in self.list])
else:
if self.nmatch:
print "----------------------------------------------------"
@@ -131,6 +133,6 @@
@param word: word to be cleaned
@type word: unicode
@return: word clean (unicode)"""
- for remove in ("&", ".", "...", ";", ",", "\n", "(", ")", "%", "@", "_", " «", " \
»", "*", "[", "]", "|", "\\"): + for remove in ("&", ".", "...", ";", ",", "\n", \
"(", ")", "%", "@", "_", " «", " »", "*", "[", "]", "|", "\\", "…", "=", "<", ">"): \
word=word.replace(remove, "") return word
\ No newline at end of file
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic