Skip to content

Commit

Permalink
Make all classes new-style (derive from object)
Browse files Browse the repository at this point in the history
Otherwise super() fails.

Not necessary with Python 3, but necessary with Python 2
(where classic classes are the default)
  • Loading branch information
pcahyna authored and dwlehman committed Oct 31, 2019
1 parent 87e719a commit 8697620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 8697620

Please sign in to comment.