summaryrefslogtreecommitdiff
path: root/distutils2/depgraph.py
diff options
context:
space:
mode:
authorAlexandru Plugaru <alexandru.plugaru@gmail.com>2011-08-30 09:30:47 +0200
committerAlexandru Plugaru <alexandru.plugaru@gmail.com>2011-08-30 09:30:47 +0200
commit6d6499fd8bc272709671a1bdb34c1e91dd1898cf (patch)
tree5e51742b81b00a6e81cd34dd205d4aed0fa15845 /distutils2/depgraph.py
parente847e337597668638ebd94c652b53d7b28a1e6b1 (diff)
downloaddisutils2-6d6499fd8bc272709671a1bdb34c1e91dd1898cf.tar.gz
Fixed a python2.4 syntax errors.
Diffstat (limited to 'distutils2/depgraph.py')
-rw-r--r--distutils2/depgraph.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/distutils2/depgraph.py b/distutils2/depgraph.py
index bc8ddc5..bf622c1 100644
--- a/distutils2/depgraph.py
+++ b/distutils2/depgraph.py
@@ -258,8 +258,9 @@ def main():
else:
filename = 'depgraph.dot'
- with open(filename, 'w') as f:
- graph_to_dot(graph, f, True)
+ f = open(filename, 'w')
+ graph_to_dot(graph, f, True)
+ f.close()
tempout.seek(0)
tempout = tempout.read()
print(tempout)