Skip to content

Commit

Permalink
Replace jsonpickle's deserialization into json deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
paireks committed Feb 22, 2022
1 parent 7924d5b commit 12824f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dotbimpy/file.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import jsonpickle
import json


class File:
Expand Down Expand Up @@ -30,7 +31,7 @@ def read(path):
raise Exception("Path should end up with .bim extension")

with open(path, "r") as bim_file:
json_dictionary = jsonpickle.decode(bim_file.read())
json_dictionary = json.loads(bim_file.read())
file = File.__convert_JSON_to_file(json_dictionary)

return file
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
setup(
name='dotbimpy',
packages=['dotbimpy'],
version='0.0.2',
version='0.0.3',
license='MIT',
description='Python library for dotbim',
author='Wojciech',
author_email='[email protected]',
url='https://github.com/paireks/dotbimpy',
download_url='https://github.com/paireks/dotbimpy/archive/refs/tags/v_0_0_2.tar.gz',
download_url='https://github.com/paireks/dotbimpy/archive/refs/tags/v_0_0_3.tar.gz',
keywords=[],
install_requires=[
'jsonpickle',
Expand Down

0 comments on commit 12824f5

Please sign in to comment.