From d37f7abfe4c1b23426b0fbdc85ae31788602ff28 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 24 Jun 2021 09:19:08 -0400 Subject: Don't inherit from object anymore --- python/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/update.py') diff --git a/python/update.py b/python/update.py index 8d4611d6..5f3b55df 100644 --- a/python/update.py +++ b/python/update.py @@ -67,7 +67,7 @@ class _UpdateChannelMetaClass(type): return result -class UpdateProgressCallback(object): +class UpdateProgressCallback: def __init__(self, func): self.cb = ctypes.CFUNCTYPE(ctypes.c_bool, ctypes.c_void_p, ctypes.c_ulonglong, ctypes.c_ulonglong)(self.callback) self.func = func @@ -188,7 +188,7 @@ class UpdateChannel(metaclass=_UpdateChannelMetaClass): self._latest_version_num = value -class UpdateVersion(object): +class UpdateVersion: def __init__(self, channel, ver, notes, t): self._channel = channel self._version = ver -- cgit v1.3.1