diff options
| author | chillaranand <anand21nanda@gmail.com> | 2017-01-21 18:43:44 +0530 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-01-25 12:23:46 -0500 |
| commit | d6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch) | |
| tree | ab02fd9949d4bfa23e27dea45e213ce334c883f0 /django/utils/log.py | |
| parent | dc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff) | |
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'django/utils/log.py')
| -rw-r--r-- | django/utils/log.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/utils/log.py b/django/utils/log.py index 77e2f59250..495b846a62 100644 --- a/django/utils/log.py +++ b/django/utils/log.py @@ -159,7 +159,7 @@ class RequireDebugTrue(logging.Filter): class ServerFormatter(logging.Formatter): def __init__(self, *args, **kwargs): self.style = color_style() - super(ServerFormatter, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) def format(self, record): msg = record.msg @@ -187,7 +187,7 @@ class ServerFormatter(logging.Formatter): record.server_time = self.formatTime(record, self.datefmt) record.msg = msg - return super(ServerFormatter, self).format(record) + return super().format(record) def uses_server_time(self): return self._fmt.find('%(server_time)') >= 0 |
