Overview
Comment: | [graphspell] fix import of custom suggestion module |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | graphspell |
Files: | files | file ages | folders |
SHA3-256: |
2434cdac51cdfb39c237d597216058ac |
User & Date: | olr on 2018-09-19 22:30:11 |
Other Links: | manifest | tags |
Context
2018-09-20
| ||
09:01 | [tb] fix import and call of the gc engine check-in: 9174cdbe8a user: olr tags: trunk, tb | |
2018-09-19
| ||
22:30 | [graphspell] fix import of custom suggestion module check-in: 2434cdac51 user: olr tags: trunk, graphspell | |
21:48 | [core][py] useless imports check-in: 0346156a66 user: olr tags: trunk, core | |
Changes
Modified graphspell/spellchecker.py from [85bf9023fe] to [2e8bbcc172].
︙ | ︙ | |||
117 118 119 120 121 122 123 | # Default suggestions def loadSuggestions (self, sLangCode): "load default suggestion module for <sLangCode>" try: | | | 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 | # Default suggestions def loadSuggestions (self, sLangCode): "load default suggestion module for <sLangCode>" try: suggest = importlib.import_module("."+sLangCode, "grammalecte.graphspell") except ImportError: print("No suggestion module for language <"+sLangCode+">") return self.dDefaultSugg = suggest.dSugg # Storage |
︙ | ︙ |