Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[1.6.x] Fixed Python 3 syntax error introduced in [c72392d]

Backport of 498014c from master
  • Loading branch information...
commit 6ba01f64c1e5baf1e876cabd3d625ad53f39a5e4 1 parent 3df9647
Tim Graham timgraham authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/serializers/__init__.py
2  django/core/serializers/__init__.py
View
@@ -67,7 +67,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,), {
Please sign in to comment.
Something went wrong with that request. Please try again.