Skip to content

Commit

Permalink
_name property to be set
Browse files Browse the repository at this point in the history
  • Loading branch information
ukablan-wpc committed Sep 27, 2024
1 parent f2d1739 commit d1cc5d8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pleskdistup/actions/distupgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,13 @@ def __init__(
self._name = name

@property
def name(self):
def name(self) -> str:
return self._name.format(self=self)

@name.setter
def name(self, val: str) -> None:
self._name = val

def _apply_replace_to_file(self, fpath: str, ptrn: re.Pattern, to_regexp: str) -> None:
changed = False
new_lines = []
Expand Down

0 comments on commit d1cc5d8

Please sign in to comment.