Package buildbot :: Package util
[frames] | no frames]

Package util

source code

Submodules

Classes
  ComparableMixin
Specify a list of attributes that are 'important'.
  LRUCache
A simple least-recently-used cache, with a fixed maximum size.
Functions
 
naturalSort(l)
Returns a sorted copy of l, so that numbers in strings are sorted in the proper order.
source code
 
now(_reactor=None) source code
 
formatInterval(eta) source code
 
safeTranslate(str) source code
 
none_or_str(x)
Cast X to a str if it is not None
source code
Variables
  NotABranch = NotABranch()
Function Details

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']