From 7631daafba92cb00ec9b862c1729c44d68763efa Mon Sep 17 00:00:00 2001 From: Lenka Jakovljevic Date: Thu, 28 Mar 2024 13:03:53 +0100 Subject: [PATCH] #3 implementiranje change klase --- change.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/change.py b/change.py index 3a387f4..656b4c3 100644 --- a/change.py +++ b/change.py @@ -10,21 +10,21 @@ def __init__(self, content): def validate_content(self): raise NotImplementedError("") -class add(Change): +class Add(Change): def __init__(self, content): super().__init__(content) #ovo ne treba jer nasledjuje i ne menja nista def validate_content(self): if not isinstance(self.content, str): raise ValueError("mora da bude string") #ne mogu ti karakteri? -class delete(Change): +class Delete(Change): def __init__(self): - super().__init__( None) + super().__init__(None) def validate_content(self): if self.content is not None: - raise ValueError("kontent mora da bude None") + raise ValueError("kontent ne sme da bude None") -class modifikacija(Change): +class Modifikacija(Change): def __init__(self, content): super().__init__(content) def validate_content(self):