Skip to content

Commit

Permalink
Cleanup super() in persist
Browse files Browse the repository at this point in the history
  • Loading branch information
davesteele committed Dec 8, 2024
1 parent d205d68 commit b3aa30f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comitup/persist.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class persist(dict):
def __init__(self, path, *args, **kwargs):
"""Initialize with backing file path, and optional dict defaults"""

super(persist, self).__init__(*args, **kwargs)
super().__init__(*args, **kwargs)

self._path = path

Expand All @@ -46,7 +46,7 @@ def _load(self):
with open(self._path, "r") as fp:
dct = json.load(fp)

super().update(dct)
self.update(dct)

def _addsave(fn):
"""Decorator to add save behavior to methods"""
Expand Down

0 comments on commit b3aa30f

Please sign in to comment.