diff options
| author | Alexandru Plugaru <alexandru.plugaru@gmail.com> | 2011-08-30 09:30:47 +0200 |
|---|---|---|
| committer | Alexandru Plugaru <alexandru.plugaru@gmail.com> | 2011-08-30 09:30:47 +0200 |
| commit | 6d6499fd8bc272709671a1bdb34c1e91dd1898cf (patch) | |
| tree | 5e51742b81b00a6e81cd34dd205d4aed0fa15845 /distutils2/depgraph.py | |
| parent | e847e337597668638ebd94c652b53d7b28a1e6b1 (diff) | |
| download | disutils2-6d6499fd8bc272709671a1bdb34c1e91dd1898cf.tar.gz | |
Fixed a python2.4 syntax errors.
Diffstat (limited to 'distutils2/depgraph.py')
| -rw-r--r-- | distutils2/depgraph.py | 5 |
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) |
