def add_to_pwl(self,word): """Add a word to the user's personal word list.""" warnings.warn("Dict.add_to_pwl is deprecated, please use Dict.add", category=DeprecationWarning,stacklevel=2) self._check_this() word = self._StringClass(word) _e.dict_add_to_pwl(self._this,word.encode())
def add_to_pwl(self,word): """Add a word to the user's personal word list.""" warnings.warn("Dict.add_to_pwl is deprecated, please use Dict.add", category=DeprecationWarning,stacklevel=2) self._check_this() word = EnchantStr(word) _e.dict_add_to_pwl(self._this,word.encode())
def add_to_pwl(self, word): """Add a word to the user's personal word list.""" warnings.warn("Dict.add_to_pwl is deprecated, please use Dict.add", category=DeprecationWarning) self._check_this() word = EnchantStr(word) _e.dict_add_to_pwl(self._this, word.encode())