Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.4.x] -- Fixed Python 2.5 compatibility issues

  • Loading branch information...
commit 4dba4ed548c0abdf4cdc0f3781d1c4d89a567d23 1 parent 1f53733
Anssi Kääriäinen akaariai authored
2  django/contrib/admin/filters.py
View
@@ -131,7 +131,7 @@ def has_output(self):
def queryset(self, request, queryset):
try:
return queryset.filter(**self.used_parameters)
- except ValidationError as e:
+ except ValidationError, e:
raise IncorrectLookupParameters(e)
@classmethod
6 django/contrib/auth/tests/context_processors.py
View
@@ -43,13 +43,15 @@ def test_permwrapper_in(self):
Test that 'something' in PermWrapper doesn't end up in endless loop.
"""
perms = PermWrapper(MockUser())
- with self.assertRaises(TypeError):
+ def raises():
self.EQLimiterObject() in perms
+ self.assertRaises(raises, TypeError)
def test_permlookupdict_in(self):
pldict = PermLookupDict(MockUser(), 'mockapp')
- with self.assertRaises(TypeError):
+ def raises():
self.EQLimiterObject() in pldict
+ self.assertRaises(raises, TypeError)
class AuthContextProcessorTests(TestCase):
Please sign in to comment.
Something went wrong with that request. Please try again.