On Thu, Aug 19, 2010 at 02:55:05AM +0300, Sergey Poznyakoff wrote: > ???? ???????? <aelmahmo...@sabily.org> ha escrit: > > > I thought that you first reverted those lines, because this is not a > > right thing to do in python > > It is questionable. I don't care whether it is right or wrong > from the point of view of Python purists. The truth is that this is > the only approach that works. ---end quoted text---
What does that diff do ? Is it related to UTF8 issue ? @@ -127,9 +138,9 @@ class DicoModule: def result_headers (self, rh, hdr): if dico.current_markup () != 'wiki': hdr['Content-Type'] = 'text/plain'; - elif self.wikihost.find ('.wikipedia.org') != -1: + elif '.wikipedia.org' in self.wikihost: hdr['Content-Type'] = 'text/x-wiki-wikipedia'; - elif self.wikihost.find ('.wiktionary.org') != -1: + elif '.wiktionary.org' in self.wikihost: hdr['Content-Type'] = 'text/x-wiki-wiktionary'; else: hdr['Content-Type'] = 'text/x-wiki'; -- أحمد المحمودي (Ahmed El-Mahmoudy) Digital design engineer GPG KeyID: 0xEDDDA1B7 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7
signature.asc
Description: Digital signature