[dia] Move graph creation into it's own function (SaveDot).



commit bb6c7308386e189c12571200c4cce7e66bc5e2c4
Author: Hans Breuer <hans breuer org>
Date:   Fri Oct 1 21:46:54 2010 +0200

    Move graph creation into it's own function (SaveDot).

 plug-ins/python/wdeps.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/python/wdeps.py b/plug-ins/python/wdeps.py
index 8bbb2b9..f84faaa 100644
--- a/plug-ins/python/wdeps.py
+++ b/plug-ins/python/wdeps.py
@@ -795,6 +795,10 @@ For more information read the source.
 		# no diagram at all
 		sys.exit (0)
 
+	SaveDot (deps, sGraph, bByUse, nSymbols, f)
+
+def SaveDot (deps, sGraph, bByUse, nSymbols, f) :
+	# build the graph
 	f.write ('digraph "' + sGraph + '" {\n')
 	f.write ('graph [fontsize=8.0 label="wdeps.py ' + string.join (sys.argv[1:], " ") 
 			+ '\\n' + time.ctime() + '"]\n') 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]