From 8697620df5373b7c882cb5bef6baeb80bb611d02 Mon Sep 17 00:00:00 2001 From: Pavel Cahyna Date: Mon, 21 Oct 2019 14:41:07 +0200 Subject: [PATCH] Make all classes new-style (derive from object) Otherwise super() fails. Not necessary with Python 3, but necessary with Python 2 (where classic classes are the default) --- library/blivet.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/library/blivet.py b/library/blivet.py index d671d09b..17043646 100644 --- a/library/blivet.py +++ b/library/blivet.py @@ -127,7 +127,7 @@ class BlivetAnsibleError(Exception): pass -class BlivetVolume: +class BlivetVolume(object): def __init__(self, blivet_obj, volume, bpool=None): self._blivet = blivet_obj self._volume = volume @@ -369,7 +369,7 @@ def _get_blivet_volume(blivet_obj, volume, bpool=None): return _BLIVET_VOLUME_TYPES[volume_type](blivet_obj, volume, bpool=bpool) -class BlivetPool: +class BlivetPool(object): def __init__(self, blivet_obj, pool): self._blivet = blivet_obj self._pool = pool @@ -583,7 +583,7 @@ def manage_pool(b, pool): volume['_mount_id'] = bvolume._volume.get('_mount_id', '') -class FSTab: +class FSTab(object): def __init__(self, blivet_obj): self._blivet = blivet_obj self._entries = list()