Issue #1717: documentation fixes related to the cmp removal.

This commit is contained in:
Mark Dickinson 2009-02-01 14:18:10 +00:00
parent c008a176af
commit c48d834026
6 changed files with 45 additions and 36 deletions

View file

@ -1,7 +1,12 @@
import sqlite3
def collate_reverse(string1, string2):
return -cmp(string1, string2)
if string1 == string2:
return 0
elif string1 < string2:
return 1
else:
return -1
con = sqlite3.connect(":memory:")
con.create_collation("reverse", collate_reverse)