Grammalecte  Check-in [2434cdac51]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

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:2434cdac51cdfb39c237d597216058ac4f6de23320c1ed913464b0498e4da805
User & Date: olr 2018-09-19 22:30:11
Context
2018-09-20
09:01
[tb] fix import and call of the gc engine check-in: 9174cdbe8a user: olr tags: tb, trunk
2018-09-19
22:30
[graphspell] fix import of custom suggestion module check-in: 2434cdac51 user: olr tags: graphspell, trunk
21:48
[core][py] useless imports check-in: 0346156a66 user: olr tags: core, trunk
Changes

Changes to graphspell/spellchecker.py.

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, "graphspell")
        except ImportError:
            print("No suggestion module for language <"+sLangCode+">")
            return
        self.dDefaultSugg = suggest.dSugg


    # Storage







|







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