runtime/loglevels.py
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Fri, 01 Mar 2019 16:55:16 +0300
changeset 2518 c48470e2b383
parent 1973 cc7a46953471
permissions -rw-r--r--
Fix section styling in code editor (python and c extensions) if non-latin symbols are used in the code

Problem exists even if non-latin characters are placed in comments.
Close #76
#!/usr/bin/env python
# -*- coding: utf-8 -*-

# See COPYING.Runtime file for copyrights details.

LogLevels = ["CRITICAL", "WARNING", "INFO", "DEBUG"]
LogLevelsCount = len(LogLevels)
LogLevelsDict = dict(zip(LogLevels, range(LogLevelsCount)))
LogLevelsDefault = LogLevelsDict["DEBUG"]