From 5cebad6a4c82180000bb040f8b2e122e9a5bf6be Mon Sep 17 00:00:00 2001 From: "akos.kozak" Date: Mon, 30 Dec 2024 02:03:39 +0100 Subject: [PATCH] #49: Refactor `__repr__` in SongData for cleaner attribute handling. Simplified the `__repr__` method by introducing a helper function to format attributes and streamline their inclusion. This improves code readability and reduces redundancy without altering functionality. --- modules/servant/song_loader/song_data.py | 41 +++++++++--------------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/modules/servant/song_loader/song_data.py b/modules/servant/song_loader/song_data.py index 96a1159..e8eb524 100644 --- a/modules/servant/song_loader/song_data.py +++ b/modules/servant/song_loader/song_data.py @@ -44,28 +44,19 @@ def is_official(self): return self.rspl_official in KEY_VALUES_OF_AN_OFFICIAL_CDLC def __repr__(self): - rep = '" \ No newline at end of file