1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #23919 -- Stopped inheriting from object to define new style classes.

This commit is contained in:
Simon Charette
2017-01-19 02:39:46 -05:00
committed by Claude Paroz
parent a556396339
commit cecc079168
293 changed files with 512 additions and 514 deletions

View File

@@ -1,7 +1,7 @@
"""Base email backend class."""
class BaseEmailBackend(object):
class BaseEmailBackend:
"""
Base class for email backend implementations.

View File

@@ -223,7 +223,7 @@ class SafeMIMEMultipart(MIMEMixin, MIMEMultipart):
MIMEMultipart.__setitem__(self, name, val)
class EmailMessage(object):
class EmailMessage:
"""
A container for email information.
"""

View File

@@ -7,7 +7,7 @@ import socket
# Cache the hostname, but do it lazily: socket.getfqdn() can take a couple of
# seconds, which slows down the restart of the server.
class CachedDnsName(object):
class CachedDnsName:
def __str__(self):
return self.get_fqdn()