diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-06-08 02:10:57 (GMT) |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-06-08 02:10:57 (GMT) |
| commit | 3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a (patch) | |
| tree | 6b47832c98920e8956eab057606465a09327e35b /Lib/packaging/depgraph.py | |
| parent | 04fc999c057dffee882e8711ba28ec51ee092698 (diff) | |
| download | cpython-3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a.zip cpython-3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a.tar.gz cpython-3cab2f150c5ab8af6cedbe9ce5550d97e4a4004a.tar.bz2 | |
Packaging cleanup: normalize print calls.
Namely: use default arguments instead of explicit empty string; use multiple
arguments instead of building strings.
Diffstat (limited to 'Lib/packaging/depgraph.py')
| -rw-r--r-- | Lib/packaging/depgraph.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/packaging/depgraph.py b/Lib/packaging/depgraph.py index 48ea3d9..9f3d6c3 100644 --- a/Lib/packaging/depgraph.py +++ b/Lib/packaging/depgraph.py @@ -236,7 +236,9 @@ def main(): except Exception as e: tempout.seek(0) tempout = tempout.read() - print('Could not generate the graph\n%s\n%s\n' % (tempout, e)) + print('Could not generate the graph') + print(tempout) + print(e) sys.exit(1) for dist, reqs in graph.missing.items(): @@ -246,7 +248,7 @@ def main(): # XXX replace with argparse if len(sys.argv) == 1: print('Dependency graph:') - print(' ' + repr(graph).replace('\n', '\n ')) + print(' ', repr(graph).replace('\n', '\n ')) sys.exit(0) elif len(sys.argv) > 1 and sys.argv[1] in ('-d', '--dot'): if len(sys.argv) > 2: |
