From 548ee3795bb4262fe1ec3f47cb450f4c96379994 Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Fri, 6 Jan 2006 22:10:35 +0000 Subject: [PATCH] magic-removal: fixed a Python2.4-ism in db.models.manipulators (use of keywords to list.sort) git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1841 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/models/manipulators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/models/manipulators.py b/django/db/models/manipulators.py index 67e1c41313..f87afad989 100644 --- a/django/db/models/manipulators.py +++ b/django/db/models/manipulators.py @@ -374,7 +374,7 @@ class ManipulatorCollection(list, Naming): if expanded_data: # There are new objects in the data items = [(int(k), v) for k, v in expanded_data.items()] - items.sort(cmp = lambda x, y: cmp(x[0], y[0])) + items.sort(lambda x, y: cmp(x[0], y[0])) for index, obj_data in items: child_manip = self.add_child(index) #HACK: this data will not have been converted to python form yet.