mirror of
https://github.com/django/django.git
synced 2025-10-03 07:14:41 +00:00
[1.6.x] Fixed Python 3 syntax error introduced in [c72392da
]
Backport of 498014ccd5
from master
This commit is contained in:
parent
3df9647ad9
commit
6ba01f64c1
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def register_serializer(format, serializer_module, serializers=None):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
module = importlib.import_module(serializer_module)
|
module = importlib.import_module(serializer_module)
|
||||||
except ImportError, exc:
|
except ImportError as exc:
|
||||||
bad_serializer = BadSerializer(exc)
|
bad_serializer = BadSerializer(exc)
|
||||||
|
|
||||||
module = type('BadSerializerModule', (object,), {
|
module = type('BadSerializerModule', (object,), {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue