Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
fix format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Trickybrain committed Mar 29, 2024
1 parent 9f026f1 commit d4da1f6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 159 deletions.
134 changes: 0 additions & 134 deletions python/selfie-lib/selfie_lib/SnapshotFile.py

This file was deleted.

25 changes: 0 additions & 25 deletions python/selfie-lib/selfie_lib/SnapshotValue.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from abc import ABC, abstractmethod
from typing import Union
# from .SnapshotValueBinary import SnapshotValueBinary
# from .SnapshotValueString import SnapshotValueString


def unix_newlines(string: str) -> str:
Expand Down Expand Up @@ -43,17 +40,6 @@ def value_binary(self) -> bytes:
def value_string(self) -> str:
raise NotImplementedError("This is a binary value.")

# def __bytes__(self):
# return self._value

# def __repr__ (self):
# return self.__bytes__()

# def __eq__(self, other):
# if not isinstance(other, SnapshotValueBinary):
# return False
# return self._value == other._value

def __eq__(self, other):
if isinstance(other, SnapshotValueBinary):
return self.value_binary() == other.value_binary()
Expand All @@ -73,17 +59,6 @@ def value_binary(self) -> bytes:
def value_string(self) -> str:
return self._value

# def __str__(self):
# return self._value

# def __repr__ (self):
# return self.__str__()

# def __eq__(self, other):
# if not isinstance(other, SnapshotValueString):
# return False
# return self._value == other._value

def __eq__(self, other):
if isinstance(other, SnapshotValueString):
return self.value_string() == other.value_string()
Expand Down

0 comments on commit d4da1f6

Please sign in to comment.