~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/services/doc/orderingcheck.txt

  • Committer: Curtis Hovey
  • Date: 2011-12-20 20:40:15 UTC
  • mto: (14565.2.1 apocalyptic-pieces)
  • mto: This revision was merged to the branch mainline in revision 14570.
  • Revision ID: curtis.hovey@canonical.com-20111220204015-aa6yy50ows6n6srz
Moved orderingcheck to lp.services.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
adds some ugliness: "if this is not the first item, assert..."  Doesn't
8
8
seem worth the trouble.
9
9
 
10
 
    >>> from canonical.launchpad.utilities.orderingcheck import OrderingCheck
 
10
    >>> from lp.services.orderingcheck import OrderingCheck
11
11
 
12
12
    >>> def sort_key(item):
13
13
    ...     """Simple sorting key for integers: the integer itself."""