Verified Commit 4c6ef77a authored by Jakob Moser's avatar Jakob Moser
Browse files

Implement executing RecodeInstruction

parent fa3df3d2
Loading
Loading
Loading
Loading
+5 −1
Changes for karaokatalog/instructions/RecodeInstruction.py: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -15,4 +15,8 @@ class RecodeInstruction(Instruction):
    new_encoding: str

    def __call__(self) -> None:
        raise NotImplementedError()
        with self.path.open("r", encoding=self.old_encoding) as f:
            file_contents = f.read()

        with self.path.open("w", encoding=self.new_encoding) as f:
            f.write(file_contents)