mirror of
https://github.com/samba-team/samba.git
synced 2025-08-03 04:22:09 +03:00
python kcc/graph_utils: don't debug in colour
this was somewhat useful during the initial development, but is wrong for a library Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
105633d4e7
commit
3a3929eee6
@ -22,8 +22,6 @@ from __future__ import print_function
|
|||||||
import os
|
import os
|
||||||
import itertools
|
import itertools
|
||||||
|
|
||||||
from samba.kcc.debug import null_debug, PURPLE, MAGENTA, DARK_YELLOW, RED
|
|
||||||
from samba.kcc.debug import DARK_GREEN, C_NORMAL, GREY
|
|
||||||
from samba.graph import dot_graph
|
from samba.graph import dot_graph
|
||||||
|
|
||||||
|
|
||||||
@ -323,9 +321,9 @@ def verify_and_dot(basename, edges, vertices=None, label=None,
|
|||||||
properties=properties)
|
properties=properties)
|
||||||
if errors:
|
if errors:
|
||||||
title = '%s %s' % (basename, label or '')
|
title = '%s %s' % (basename, label or '')
|
||||||
debug(("%s%s%s FAILED:" % (MAGENTA, title, RED)))
|
debug("%s FAILED:" % title)
|
||||||
for p, e, doc in errors:
|
for p, e, doc in errors:
|
||||||
debug(" %18s: %s%s%s" % (p, DARK_YELLOW, e, RED))
|
debug(" %18s: %s" % (p, e))
|
||||||
if fatal:
|
if fatal:
|
||||||
raise GraphError("The '%s' graph lacks the following "
|
raise GraphError("The '%s' graph lacks the following "
|
||||||
"properties:\n%s" %
|
"properties:\n%s" %
|
||||||
@ -338,6 +336,6 @@ def list_verify_tests():
|
|||||||
if k.startswith('verify_graph_'):
|
if k.startswith('verify_graph_'):
|
||||||
print(k.replace('verify_graph_', ''))
|
print(k.replace('verify_graph_', ''))
|
||||||
if v.__doc__:
|
if v.__doc__:
|
||||||
print(' %s%s%s' % (GREY, v.__doc__.rstrip(), C_NORMAL))
|
print(' %s' % (v.__doc__.rstrip()))
|
||||||
else:
|
else:
|
||||||
print()
|
print()
|
||||||
|
Reference in New Issue
Block a user