diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 13:25:26 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-04-06 13:25:26 -0600 |
commit | bb726ca19f434f5055c0efceefe48d89469fcbbe (patch) | |
tree | 889782afaf67fd5acb5f222969251871c0c46e5a /tools/c_coverage/c_coverage_report.py | |
parent | 7441fa50523f5b4a16c854bf004d675e5bd86ab8 (diff) | |
download | numpy-bb726ca19f434f5055c0efceefe48d89469fcbbe.tar.gz |
2to3: Apply `print` fixer.
Add `print_function` to all `from __future__ import ...` statements
and use the python3 print function syntax everywhere.
Closes #3078.
Diffstat (limited to 'tools/c_coverage/c_coverage_report.py')
-rwxr-xr-x | tools/c_coverage/c_coverage_report.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/c_coverage/c_coverage_report.py b/tools/c_coverage/c_coverage_report.py index 83fdd1998..9e29a7566 100755 --- a/tools/c_coverage/c_coverage_report.py +++ b/tools/c_coverage/c_coverage_report.py @@ -4,7 +4,7 @@ A script to create C code-coverage reports based on the output of valgrind's callgrind tool. """ -from __future__ import division, absolute_import +from __future__ import division, absolute_import, print_function import optparse import os @@ -21,7 +21,7 @@ try: from pygments.formatters import HtmlFormatter has_pygments = True except ImportError: - print "This script requires pygments 0.11 or greater to generate HTML" + print("This script requires pygments 0.11 or greater to generate HTML") has_pygments = False @@ -179,6 +179,6 @@ if __name__ == '__main__': files.write_text(options.directory) if 'html' in formats: if not has_pygments: - print "Pygments 0.11 or later is required to generate HTML" + print("Pygments 0.11 or later is required to generate HTML") sys.exit(1) files.write_html(options.directory) |