Grammalecte  Check-in [4f6cfde973]

Overview
Comment:[build] deprecated object name (Python 3.7)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | build | rg
Files: files | file ages | folders
SHA3-256: 4f6cfde97337a939734d922de0271870d34cd453d806a73753dbb33251683fba
User & Date: olr on 2018-07-19 13:58:24
Other Links: branch diff | manifest | tags
Context
2018-07-19
14:40
[build] fix warning for Python 3.7 regexes check-in: e540b82c60 user: olr tags: build, rg
13:58
[build] deprecated object name (Python 3.7) check-in: 4f6cfde973 user: olr tags: build, rg
12:57
[fr] conversion: regex rules -> graph rules check-in: b6a4640bbb user: olr tags: fr, rg
Changes

Modified make.py from [47003996f5] to [cf1490b4f0].

27
28
29
30
31
32
33
34
35
36
37
38
39
40
41


sWarningMessage = "The content of this folder is generated by code and replaced at each build.\n"


def getConfig (sLang):
    "load config.ini in <sLang> at gc_lang/<sLang>, returns xConfigParser object"
    xConfig = configparser.SafeConfigParser()
    xConfig.optionxform = str
    try:
        xConfig.read_file(open("gc_lang/" + sLang + "/config.ini", "r", encoding="utf-8"))
    except FileNotFoundError:
        print("# Error. Can’t read config file [" + sLang + "]")
        exit()
    return xConfig







|







27
28
29
30
31
32
33
34
35
36
37
38
39
40
41


sWarningMessage = "The content of this folder is generated by code and replaced at each build.\n"


def getConfig (sLang):
    "load config.ini in <sLang> at gc_lang/<sLang>, returns xConfigParser object"
    xConfig = configparser.ConfigParser()
    xConfig.optionxform = str
    try:
        xConfig.read_file(open("gc_lang/" + sLang + "/config.ini", "r", encoding="utf-8"))
    except FileNotFoundError:
        print("# Error. Can’t read config file [" + sLang + "]")
        exit()
    return xConfig