Skip to content

Commit

Permalink
blivet: Inherit from object if appropriate
Browse files Browse the repository at this point in the history
The @Property decorator requires a new-style class in Python 2, see
https://lgtm.com/rules/10030086/
  • Loading branch information
tyll committed Oct 31, 2019
1 parent fd08008 commit d15d14f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,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 @@ -346,7 +346,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

0 comments on commit d15d14f

Please sign in to comment.