mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Py3: Remove subclassing from object
Python 2 had old style and new style classes. Python 3 has only new style classes. There is no point to subclass from object any more. See: https://pagure.io/freeipa/issue/7715 Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
This commit is contained in:
@@ -49,7 +49,7 @@ else:
|
||||
pattern_type = type(re.compile(""))
|
||||
|
||||
|
||||
class Prop(object):
|
||||
class Prop:
|
||||
def __init__(self, *ops):
|
||||
self.__ops = frozenset(ops)
|
||||
self.__prop = 'prop value'
|
||||
@@ -72,7 +72,7 @@ class Prop(object):
|
||||
prop = property(__get_prop, __set_prop, __del_prop)
|
||||
|
||||
|
||||
class test_Fuzzy(object):
|
||||
class test_Fuzzy:
|
||||
klass = util.Fuzzy
|
||||
|
||||
def test_init(self):
|
||||
|
||||
Reference in New Issue
Block a user