Skip to content

Commit

Permalink
Replace simplejson dependency with standard json library. (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
IdrisMiles committed Nov 3, 2020
1 parent 2c7cf0d commit e18084e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion cuesubmit/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,5 @@
'grpcio-tools',
'PySide2',
'PyYAML',
'simplejson'
]
)
10 changes: 5 additions & 5 deletions pyoutline/outline/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from builtins import object
import os
import logging
import simplejson
import json
import time
import uuid
import yaml
Expand Down Expand Up @@ -93,12 +93,12 @@ def load_outline(path):

return ol

def load_json(json):
def load_json(json_str):
"""
Parse a json repesentation of an outline file.
:type json: str
:param json: A json string.
:type json_str: str
:param json_str: A json string.
:rtype: L{Outline}
:return: The resulting outline object.
Expand All @@ -117,7 +117,7 @@ def decode_layer(layer):
del result["name"]
return result

data = simplejson.loads(json)
data = json.loads(json_str)
ol = Outline(current=True)

if "name" in data:
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,4 @@ pexpect==4.6.0
psutil==5.6.6
pyfakefs==3.6
PyYAML==5.1
simplejson==3.16.0
six==1.11.0

0 comments on commit e18084e

Please sign in to comment.