Skip to content

Commit e97dc8b

Browse files
committed
Removed unneeded object inheritance
1 parent 2c4c4bf commit e97dc8b

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

example/gateways.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from two_factor.templatetags.two_factor import mask_phone_number
66

77

8-
class Messages(object):
8+
class Messages:
99
@classmethod
1010
def make_call(cls, device, token):
1111
cls._add_message(_('Fake call to %(number)s: "Your token is: %(token)s"'),

tests/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from two_factor.utils import default_device
77

88

9-
class UserMixin(object):
9+
class UserMixin:
1010
@classmethod
1111
def setUpClass(cls):
1212
super().setUpClass()

two_factor/admin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
)
1717

1818

19-
class AdminSiteOTPRequiredMixin(object):
19+
class AdminSiteOTPRequiredMixin:
2020
"""
2121
Mixin for enforcing OTP verified staff users.
2222

two_factor/gateways/fake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
logger = logging.getLogger(__name__)
44

55

6-
class Fake(object):
6+
class Fake:
77
"""
88
Prints the tokens to the logger. You will have to set the message level of
99
the ``two_factor`` logger to ``INFO`` for them to appear in the console.

two_factor/gateways/twilio/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'pt-PT', 'ru-RU', 'sv-SE', 'zh-CN', 'zh-HK', 'zh-TW')
1818

1919

20-
class Twilio(object):
20+
class Twilio:
2121
"""
2222
Gateway for sending text messages and making phone calls using Twilio_.
2323

two_factor/views/mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from ..utils import default_device
88

99

10-
class OTPRequiredMixin(object):
10+
class OTPRequiredMixin:
1111
"""
1212
View mixin which verifies that the user logged in using OTP.
1313

0 commit comments

Comments
 (0)