More adjustments to graph make for pep8.
This commit is contained in:
parent
3b16335266
commit
4305d28bdd
@ -6,6 +6,8 @@ from devstack.progs import common
|
||||
|
||||
distro = settings.RHEL6
|
||||
comps = common.get_default_components(distro)
|
||||
|
||||
|
||||
def filter_c(c):
|
||||
if not inspect.isclass(c):
|
||||
return False
|
||||
@ -13,6 +15,7 @@ def filter_c(c):
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
action = settings.INSTALL
|
||||
klss = list()
|
||||
for c in comps.keys():
|
||||
@ -21,13 +24,9 @@ for c in comps.keys():
|
||||
|
||||
max_depth = 5
|
||||
fn = "%s.png" % (action)
|
||||
objgraph.show_refs(klss,
|
||||
objgraph.show_refs(klss,
|
||||
filename=fn,
|
||||
max_depth=max_depth,
|
||||
highlight=inspect.isclass,
|
||||
filter=filter_c,
|
||||
extra_ignore=[id(locals())])
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user