From b3f4cffbca88c4430c5a780577a6b936f5c3c9e2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 16 Sep 2024 21:47:53 +0200 Subject: [PATCH] =?UTF-8?q?=E2=88=92str?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spcd/project.py | 9 --------- spcd/projects.py | 12 ------------ 2 files changed, 21 deletions(-) diff --git a/spcd/project.py b/spcd/project.py index 6074e0d..8cc8181 100644 --- a/spcd/project.py +++ b/spcd/project.py @@ -44,12 +44,3 @@ class Project: self.root = Path(value) # url self.url = add_url_path(projects.url, self.name) - - def __str__(self) -> str: - """List branch, name, root & url.""" - return f"""\ -branch = {self.branch} - name = {self.name} - root = {self.root} - url = {self.url} -""" diff --git a/spcd/projects.py b/spcd/projects.py index b09e59b..81627e6 100644 --- a/spcd/projects.py +++ b/spcd/projects.py @@ -33,15 +33,3 @@ class Projects: for variable in SERVER_URL: if value := self.environment.get(variable, None): self.url = add_url_path(value, self.group) - - def __str__(self) -> str: - """List group, name & url. - - :return: string - :rtype: str - """ - return f"""\ -group = {self.group} - name = {self.name} - url = {self.url} -"""