Skip to content

Commit

Permalink
Revert "feat: add picklefile read option with tests"
Browse files Browse the repository at this point in the history
This reverts commit a30c9ca.

Signed-off-by: Tobias Wolf <[email protected]>
  • Loading branch information
NotTheEvilOne committed Sep 17, 2024
1 parent 013c9fb commit a8177f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
Binary file removed mock.pickle
Binary file not shown.
8 changes: 0 additions & 8 deletions src/rookify/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-

from pickle import Unpickler
import sys
import argparse
from argparse import ArgumentParser
Expand All @@ -12,13 +11,6 @@
from .yaml import load_config


def load_pickler(pickle_file_name: str) -> Any:
with open(pickle_file_name, "ab+") as pickle_file:
pickle_file.seek(0)
states_data = Unpickler(pickle_file).load()
return states_data


def parse_args(args: list[str]) -> argparse.Namespace:
# Putting args-parser in seperate function to make this testable
arg_parser = ArgumentParser("Rookify")
Expand Down

0 comments on commit a8177f1

Please sign in to comment.