Minor beautification

This commit is contained in:
Miroslav Stampar
2020-02-07 14:26:01 +01:00
parent 6467c63c24
commit 3513ca66fe
3 changed files with 5 additions and 2 deletions

View File

@@ -949,6 +949,9 @@ def setColor(message, color=None, bold=False, level=None, istty=None):
if match:
retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey"))
for match in re.finditer(r"[^\w]'([^']+)'", message): # single-quoted
retVal = retVal.replace(match.group(1), colored(match.group(1), color="lightgrey"))
return retVal
def clearColors(message):