Skip to content

Commit

Permalink
Remove jsonpickle.
Browse files Browse the repository at this point in the history
  • Loading branch information
cleanunicorn committed Jul 24, 2019
1 parent 7d8907c commit e2cd810
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
11 changes: 8 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

defaults: &defaults
docker:
- image: circleci/python:3.7.1
- image: circleci/python:3.7.3
working_directory: ~/app

version: 2
Expand Down Expand Up @@ -44,7 +44,12 @@ jobs:

- store_artifacts:
path: test-results
destination: tr1
destination: tr1

- save_cache:
paths:
- ./venv
key: v1-dependencies-{{ checksum "requirements.txt" }}

pypi_release:
<<: *defaults
Expand Down Expand Up @@ -78,4 +83,4 @@ workflows:
tags:
only: /v[0-9]+(\.[0-9]+(dev|)([0-9]+|))*/
requires:
- test
- test
4 changes: 2 additions & 2 deletions theo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import jsonpickle, time
import time, json


def private_key_to_account(pk: str):
Expand All @@ -15,6 +15,6 @@ def dump(ob=None, filename=None):
if filename is None:
filename = "{name}.json".format(name=time.time_ns())

pickled = jsonpickle.encode(ob)
pickled = json.dumps(ob)
with open(filename, "w") as f:
f.write(pickled)
2 changes: 1 addition & 1 deletion theo/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "v0.7.2"
__version__ = "v0.7.3"

0 comments on commit e2cd810

Please sign in to comment.