summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-04-25 23:20:14 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-04-25 23:20:14 +0300
commit369791c1e31c3acd05632a25db7b65359a0eef47 (patch)
tree6dad5efd70bd9476ba7c06f866335f7b9eecdfed
parent837137b3d08afece9b0762f55d2ef3811b9612f1 (diff)
update dependenciesHEADmaster
-rwxr-xr-xmain.py5
-rw-r--r--requirements.txt2
2 files changed, 4 insertions, 3 deletions
diff --git a/main.py b/main.py
index c586e0e..a539400 100755
--- a/main.py
+++ b/main.py
@@ -5,7 +5,8 @@ import traceback
import os
from argparse import ArgumentParser
-from jstate import JState
+from ch1p import State
+
def main():
# parse arguments
@@ -17,7 +18,7 @@ def main():
args = parser.parse_args()
# read file
- jstate = JState(args.state_file, default=dict(seek=0, size=0))
+ jstate = State(file=args.state_file, default=dict(seek=0, size=0))
state = jstate.read()
fsize = os.path.getsize(args.log_file)
diff --git a/requirements.txt b/requirements.txt
index dd10584..8123d9e 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,2 @@
requests~=2.25.1
-jstate~=0.0.4 \ No newline at end of file
+ch1p~=0.0.3 \ No newline at end of file