From f742c653e029a2baf69a0bc85806f05affa63915 Mon Sep 17 00:00:00 2001 From: Aymeric Augustin Date: Wed, 12 Nov 2014 21:26:31 +0100 Subject: [PATCH] Removed return from __init__. __init__ isn't allowed to return anything other than None and it isn't common practice to include a return statement. --- django/core/checks/messages.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/django/core/checks/messages.py b/django/core/checks/messages.py index 2528d11def..6b5fd319a3 100644 --- a/django/core/checks/messages.py +++ b/django/core/checks/messages.py @@ -61,24 +61,24 @@ class CheckMessage(object): class Debug(CheckMessage): def __init__(self, *args, **kwargs): - return super(Debug, self).__init__(DEBUG, *args, **kwargs) + super(Debug, self).__init__(DEBUG, *args, **kwargs) class Info(CheckMessage): def __init__(self, *args, **kwargs): - return super(Info, self).__init__(INFO, *args, **kwargs) + super(Info, self).__init__(INFO, *args, **kwargs) class Warning(CheckMessage): def __init__(self, *args, **kwargs): - return super(Warning, self).__init__(WARNING, *args, **kwargs) + super(Warning, self).__init__(WARNING, *args, **kwargs) class Error(CheckMessage): def __init__(self, *args, **kwargs): - return super(Error, self).__init__(ERROR, *args, **kwargs) + super(Error, self).__init__(ERROR, *args, **kwargs) class Critical(CheckMessage): def __init__(self, *args, **kwargs): - return super(Critical, self).__init__(CRITICAL, *args, **kwargs) + super(Critical, self).__init__(CRITICAL, *args, **kwargs)