Ticket #300: 300.patch.txt

File 300.patch.txt, 0.7 kB (added by dustin, 5 months ago)

patch

Line 
1 The function sorted() was added in Py-2.4, and bbot is compatible back to 2.3.
2 How's this look?
3 ---
4  buildbot/buildbot/status/web/grid.py |    3 ++-
5  1 file changed, 2 insertions(+), 1 deletion(-)
6
7 Index: buildbot/buildbot/status/web/grid.py
8 ===================================================================
9 --- buildbot/buildbot/status/web/grid.py        (revision 11596)
10 +++ buildbot/buildbot/status/web/grid.py        (working copy)
11 @@ -179,7 +179,8 @@
12              data += self.stamp_td(stamp)
13          data += '</tr>\n'
14  
15 -        sortedBuilderNames = sorted(status.getBuilderNames())
16 +        sortedBuilderNames = status.getBuilderNames()[:]
17 +        sortedBuilderNames.sort()
18          for bn in sortedBuilderNames:
19              builds = [None] * len(stamps)
20