Merge 823a6fde4c into 3e0535db25
This commit is contained in:
commit
ca62a7d9af
2 changed files with 5 additions and 5 deletions
2
bin/colout
Normal file → Executable file
2
bin/colout
Normal file → Executable file
|
|
@ -8,4 +8,4 @@
|
||||||
set -e
|
set -e
|
||||||
set -u
|
set -u
|
||||||
|
|
||||||
python3 -m colout.colout "$@"
|
python -m colout.colout "$@"
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@
|
||||||
# Licensed under the GPL version 3
|
# Licensed under the GPL version 3
|
||||||
# 2012 (c) nojhan <nojhan@nojhan.net>
|
# 2012 (c) nojhan <nojhan@nojhan.net>
|
||||||
|
|
||||||
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
||||||
|
from pies.overrides import *
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import re
|
import re
|
||||||
import random
|
import random
|
||||||
|
|
@ -241,7 +244,7 @@ def load_lexers():
|
||||||
try:
|
try:
|
||||||
lexers.append(lexer[1][0])
|
lexers.append(lexer[1][0])
|
||||||
except IndexError:
|
except IndexError:
|
||||||
logging.warning("cannot load lexer: %s" % lexer[1][0])
|
logging.warning("cannot load lexer: %s" % lexer[0])
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
logging.debug("loaded lexer %s" % lexer[1][0])
|
logging.debug("loaded lexer %s" % lexer[1][0])
|
||||||
|
|
@ -272,9 +275,6 @@ def colorin(text, color="red", style="normal"):
|
||||||
>>> colout.colorin("Faites chier la vache", 41, "normal")
|
>>> colout.colorin("Faites chier la vache", 41, "normal")
|
||||||
'\x1b[0;38;5;41mFaites chier la vache\x1b[0m'
|
'\x1b[0;38;5;41mFaites chier la vache\x1b[0m'
|
||||||
"""
|
"""
|
||||||
|
|
||||||
assert( type(color) is str )
|
|
||||||
|
|
||||||
global colormap_idx
|
global colormap_idx
|
||||||
global debug
|
global debug
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue