From 498014ccd5f0ab6281e60fd29d754376aed93111 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 6 Sep 2013 20:07:57 -0400 Subject: [PATCH] Fixed Python 3 syntax error introduced in [c72392da] --- django/core/serializers/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/serializers/__init__.py b/django/core/serializers/__init__.py index 89d9877ebf..bac73378b8 100644 --- a/django/core/serializers/__init__.py +++ b/django/core/serializers/__init__.py @@ -68,7 +68,7 @@ def register_serializer(format, serializer_module, serializers=None): try: module = importlib.import_module(serializer_module) - except ImportError, exc: + except ImportError as exc: bad_serializer = BadSerializer(exc) module = type('BadSerializerModule', (object,), {