[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#545848: python-enchant: Typo in method name in enchant/checker/__init__.py



fixed 545848 1.5.3-1
thanks bts

[Tapio Lehtonen, 2009-09-09]
> from enchant.checker import SpellChecker
> 
> checker = SpellChecker(u"fi_FI")
> checker.add_to_personal(u"someword")

Tapio: it's fixed in 1.5.x (currently in testing)
Please use 'checker.dict.add(u"someword")' directly for now.

Release managers: can I upload pyenchant 1.4.2-3+lenny1 with this patch:

| --- enchant/checker/__init__.py.orig	2009-09-09 22:42:20.949143895 +0200
| +++ enchant/checker/__init__.py	2009-09-09 22:42:35.564143851 +0200
| @@ -284,7 +284,7 @@
|          """
|          if word is None:
|              word = self.word
| -        self.dict.add_to_personal(word)
| +        self.dict.add(word)
|      
|      def suggest(self,word=None):
|          """Return suggested spellings for the given word.

it's clearly a typo, version in stable returns:
AttributeError: 'Dict' object has no attribute 'add_to_personal'
-- 
-=[     Piotr Ożarowski     ]=-
-=[ http://www.ozarowski.pl ]=-

Attachment: signature.asc
Description: Digital signature


Reply to: