diff --git a/django/utils/_threading_local.py b/django/utils/_threading_local.py index 08dae53dca..488de65900 100644 --- a/django/utils/_threading_local.py +++ b/django/utils/_threading_local.py @@ -146,7 +146,7 @@ class _localbase(object): object.__setattr__(self, '_local__lock', RLock()) if (args or kw) and (cls.__init__ is object.__init__): - raise TypeError("Initialization arguments are not supported: %r, %r, %r" % (args, kw, cls.__init__ is object.__init__)) + raise TypeError("Initialization arguments are not supported) # We need to create the thread dict in anticipation of # __init__ being called, to make sure we don't call it