mirror of
https://github.com/django/django.git
synced 2024-12-26 02:56:25 +00:00
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.
This commit is contained in:
parent
f9213a85c3
commit
f742c653e0
@ -61,24 +61,24 @@ class CheckMessage(object):
|
|||||||
|
|
||||||
class Debug(CheckMessage):
|
class Debug(CheckMessage):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
return super(Debug, self).__init__(DEBUG, *args, **kwargs)
|
super(Debug, self).__init__(DEBUG, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class Info(CheckMessage):
|
class Info(CheckMessage):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
return super(Info, self).__init__(INFO, *args, **kwargs)
|
super(Info, self).__init__(INFO, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class Warning(CheckMessage):
|
class Warning(CheckMessage):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
return super(Warning, self).__init__(WARNING, *args, **kwargs)
|
super(Warning, self).__init__(WARNING, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class Error(CheckMessage):
|
class Error(CheckMessage):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
return super(Error, self).__init__(ERROR, *args, **kwargs)
|
super(Error, self).__init__(ERROR, *args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
class Critical(CheckMessage):
|
class Critical(CheckMessage):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
return super(Critical, self).__init__(CRITICAL, *args, **kwargs)
|
super(Critical, self).__init__(CRITICAL, *args, **kwargs)
|
||||||
|
Loading…
Reference in New Issue
Block a user