Avoid an O(n**2) operation where O(n) will suffice.  Possibly worth a second or two when running the test suite.
Avoid an O(n**2) operation where O(n) will suffice.  Possibly worth a second or two when running the test suite.

--HG--
extra : convert_revision : svn%3Abcc190cf-cafb-0310-a4f2-bffc1f526a37/django/trunk%4014433

adieu/django-nonrel,adieu/django-nonrel,adieu/django-nonrel