summaryrefslogtreecommitdiff
path: root/coverage/cmdline.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/cmdline.py')
-rw-r--r--coverage/cmdline.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/cmdline.py b/coverage/cmdline.py
index 1348a743..587fac51 100644
--- a/coverage/cmdline.py
+++ b/coverage/cmdline.py
@@ -279,17 +279,17 @@ class CoverageScript:
"""Display an error message, or the named topic."""
assert error or topic or parser
if error:
- print error
- print "Use 'coverage help' for help."
+ print(error)
+ print("Use 'coverage help' for help.")
elif parser:
- print parser.format_help(),
+ print(parser.format_help().strip())
else:
# Parse out the topic we want from HELP_TOPICS
import re
topic_list = re.split("(?m)^=+ (\w+) =+$", HELP_TOPICS)
topics = dict(zip(topic_list[1::2], topic_list[2::2]))
help_msg = topics[topic].strip()
- print help_msg % self.covpkg.__dict__
+ print(help_msg % self.covpkg.__dict__)
def command_line(self, argv):
"""The bulk of the command line interface to Coverage.