Typo in modules/github.py, 'const' -> 'consts'

This commit is contained in:
jesopo 2018-11-17 08:20:34 +00:00
parent ea881724ee
commit b27bffaa50

View file

@ -69,11 +69,11 @@ class Module(ModuleManager.BaseModule):
def _change_count(self, n, symbol, color): def _change_count(self, n, symbol, color):
return utils.irc.color("%s%d" % (symbol, n), color)+utils.irc.bold() return utils.irc.color("%s%d" % (symbol, n), color)+utils.irc.bold()
def _added(self, n): def _added(self, n):
return self._change_count(n, "+", utils.const.GREEN) return self._change_count(n, "+", utils.consts.GREEN)
def _removed(self, n): def _removed(self, n):
return self._change_count(n, "-", utils.const.RED) return self._change_count(n, "-", utils.consts.RED)
def _modified(self, n): def _modified(self, n):
return self._change_count(n, "±", utils.const.PURPLE) return self._change_count(n, "±", utils.consts.PURPLE)
def _short_hash(self, hash): def _short_hash(self, hash):
return hash[:8] return hash[:8]