Skip to content

Commit

Permalink
Make a class 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 Nov 8, 2019
1 parent 985e231 commit cd36745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,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

0 comments on commit cd36745

Please sign in to comment.