beremiz
Clone
Summary
Browse
Changes
Graph
Use Python 3 compatible syntax for exceptions
py3-fix
2018-09-07, Yegor Yefremov
03ea6837a0b4
Use Python 3 compatible syntax for exceptions
#!/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"]