diff -r 04e5dfbd3f3d -r 3586ebd9fac8 DebugClients/Python/coverage/plugin.py --- a/DebugClients/Python/coverage/plugin.py Sat Jul 23 13:33:54 2016 +0200 +++ b/DebugClients/Python/coverage/plugin.py Sun Jul 24 12:01:01 2016 +0200 @@ -324,11 +324,26 @@ executable line number to a count of how many exits it has. To be honest, this feels wrong, and should be refactored. Let me know - if you attempt to implement this... + if you attempt to implement this method in your plugin... """ return {} + def missing_arc_description(self, start, end, executed_arcs=None): # pylint: disable=unused-argument + """Provide an English sentence describing a missing arc. + + The `start` and `end` arguments are the line numbers of the missing + arc. Negative numbers indicate entering or exiting code objects. + + The `executed_arcs` argument is a set of line number pairs, the arcs + that were executed in this file. + + By default, this simply returns the string "Line {start} didn't jump + to {end}". + + """ + return "Line {start} didn't jump to line {end}".format(start=start, end=end) + def source_token_lines(self): """Generate a series of tokenized lines, one for each line in `source`. @@ -379,3 +394,6 @@ def __ge__(self, other): return self.filename >= other.filename + +# +# eflag: FileType = Python2