From e6e83ed73cc64083e74da4d3e20086c7b1503744 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 20 Jan 2016 01:55:41 -0600 Subject: [PATCH] Revert "ast.literal_eval -> json.loads" This reverts commit 6d940b5c92858f2680ae55320bbe0d718981826c. --- copyvios/turnitin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/copyvios/turnitin.py b/copyvios/turnitin.py index 1b6c5fe..5724b7e 100644 --- a/copyvios/turnitin.py +++ b/copyvios/turnitin.py @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -import json +from ast import literal_eval import re import requests @@ -31,8 +31,8 @@ def _make_api_request(page_title, lang): 'report': 1} result = requests.get(TURNITIN_API_ENDPOINT, params=api_parameters) - # use json.loads to *safely* parse the resulting dict-containing string - parsed_api_result = json.loads(result.text) + # use literal_eval to *safely* parse the resulting dict-containing string + parsed_api_result = literal_eval(result.text) return parsed_api_result class TurnitinResult(object):