This commit is contained in:
Kenneth Kehl
2025-01-17 10:45:16 -08:00
parent 038f9aead6
commit 050ce753a2
3 changed files with 33 additions and 24 deletions

View File

@@ -32,7 +32,6 @@ class Spreadsheet:
self._csv_data = converted.getvalue()
return self._csv_data
@classmethod
def can_handle(cls, filename):
return cls.get_extension(filename) in cls.ALLOWED_FILE_EXTENSIONS
@@ -46,7 +45,6 @@ class Spreadsheet:
rows = file_content.read().decode("utf-8").splitlines()
return "\r\n".join(rows)
@classmethod
def from_rows(cls, rows, filename=""):
return cls(rows=rows, filename=filename)