Package buildbot :: Module util
[hide private]
[frames] | no frames]

Module util

source code

Classes [hide private]
  CancelableDeferred
I am a version of Deferred that can be canceled by calling my .cancel() method.
  _None
  ComparableMixin
Specify a list of attributes that are 'important'.
Functions [hide private]
 
naturalSort(l)
Returns a sorted copy of l, so that numbers in strings are sorted in the proper order.
source code
 
now() source code
 
earlier(old, new) source code
 
later(old, new) source code
 
formatInterval(eta) source code
 
ignoreStaleRefs(d, util.ignoreStaleRefs) source code
 
to_text(s) source code
Variables [hide private]
  __package__ = 'buildbot'
Function Details [hide private]

naturalSort(l)

source code 

Returns a sorted copy of l, so that numbers in strings are sorted in the proper order.

e.g. ['foo10', 'foo1', 'foo2'] will be sorted as ['foo1', 'foo2', 'foo10'] instead of the default ['foo1', 'foo10', 'foo2']