Package: botch / 0.21-8

python3-pygraphviz-dropped-the-file-attr Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Johannes Schauer <josch@debian.org>
Date: Mon, 9 Jan 2017 10:31:02 +0100
X-Dgit-Generated: 0.21-2 14efe77416c5548a77d70fb8722a9f98ceabdfd6
Subject: python3-pygraphviz dropped the file attribute. Thus adapting the code accordingly and bumping dependency to 1.4~rc1


---

--- botch-0.21.orig/tools/util.py
+++ botch-0.21/tools/util.py
@@ -113,11 +113,6 @@ def read_graph(path):
         try:
             if data is None:
                 g = nx.nx_agraph.read_dot(path)
-                # pygraphviz adds the name of the input file as the 'file'
-                # graph attribute if the deprecated "file" argument is used
-                # with pygraphviz.AGraph() as it is done by networkx
-                # https://github.com/pygraphviz/pygraphviz/issues/102
-                del g.graph['graph']['file']
             else:
                 # we cannot use nx.nx_agraph.read_dot because that uses the
                 # deprecated "file" argument when calling pygraphviz.AGraph()