Path 1: 10 calls (0.59)

_mdiff def (8) HtmlDiff._line_wrapper def (2)

tuple (10)

1def _collect_lines(self,diffs):
2        """Collects mdiff output into separate lists
3
4        Before storing the mdiff from/to data into a list, it is converted
5        into a single line of text with HTML markup.
6        """
7
8        fromlist,tolist,flaglist = [],[],[]
9        # pull from/to data and flags from mdiff style iterator
10        for fromdata,todata,flag in diffs:
11            try:
12                # store HTML markup of the lines into the lists
13                fromlist.append(self._format_line(0,flag,*fromdata))
14                tolist.append(self._format_line(1,flag,*todata))
15            except TypeError:
16                # exceptions occur for lines where context separators go
17                fromlist.append(None)
18                tolist.append(None)
19            flaglist.append(flag)
20        return fromlist,tolist,flaglist
            

Path 2: 4 calls (0.24)

_mdiff def (3) HtmlDiff._line_wrapper def (1)

tuple (4)

TypeError (4)

1def _collect_lines(self,diffs):
2        """Collects mdiff output into separate lists
3
4        Before storing the mdiff from/to data into a list, it is converted
5        into a single line of text with HTML markup.
6        """
7
8        fromlist,tolist,flaglist = [],[],[]
9        # pull from/to data and flags from mdiff style iterator
10        for fromdata,todata,flag in diffs:
11            try:
12                # store HTML markup of the lines into the lists
13                fromlist.append(self._format_line(0,flag,*fromdata))
14                tolist.append(self._format_line(1,flag,*todata))
15            except TypeError:
16                # exceptions occur for lines where context separators go
17                fromlist.append(None)
18                tolist.append(None)
19            flaglist.append(flag)
20        return fromlist,tolist,flaglist
            

Path 3: 3 calls (0.18)

_mdiff def (3)

tuple (3)

1def _collect_lines(self,diffs):
2        """Collects mdiff output into separate lists
3
4        Before storing the mdiff from/to data into a list, it is converted
5        into a single line of text with HTML markup.
6        """
7
8        fromlist,tolist,flaglist = [],[],[]
9        # pull from/to data and flags from mdiff style iterator
10        for fromdata,todata,flag in diffs:
11            try:
12                # store HTML markup of the lines into the lists
13                fromlist.append(self._format_line(0,flag,*fromdata))
14                tolist.append(self._format_line(1,flag,*todata))
15            except TypeError:
16                # exceptions occur for lines where context separators go
17                fromlist.append(None)
18                tolist.append(None)
19            flaglist.append(flag)
20        return fromlist,tolist,flaglist