summaryrefslogtreecommitdiff
path: root/tbc_error_page
diff options
context:
space:
mode:
authorTrupti Rajesh Kini2016-10-25 15:22:44 +0530
committerGitHub2016-10-25 15:22:44 +0530
commitefe99ed44bdd8a2568862967577d7ccea41024d5 (patch)
tree4c26ad501f9387e3d16c389603ae1432bd2c64fd /tbc_error_page
parent6da84d8c334e16ebea6597d8b83d51552935ed00 (diff)
parent27d47a26dd9c7765bbfda112eddbebe8f3679460 (diff)
downloadPython-TBC-Interface-efe99ed44bdd8a2568862967577d7ccea41024d5.tar.gz
Python-TBC-Interface-efe99ed44bdd8a2568862967577d7ccea41024d5.tar.bz2
Python-TBC-Interface-efe99ed44bdd8a2568862967577d7ccea41024d5.zip
Merge pull request #41 from kinitrupti/master
Upgraded to python3
Diffstat (limited to 'tbc_error_page')
-rw-r--r--tbc_error_page/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tbc_error_page/models.py b/tbc_error_page/models.py
index 82c4da6..3f9b820 100644
--- a/tbc_error_page/models.py
+++ b/tbc_error_page/models.py
@@ -1,12 +1,12 @@
from django.db import models
import os
-import cPickle
+import pickle
def get_json_from_file(filename):
path = os.path.join(os.path.dirname(os.path.abspath(__file__)), filename)
if os.path.isfile(path):
with open(path) as json_dump:
- json_data =cPickle.load(json_dump)
+ json_data =pickle.load(json_dump)
return json_data
else:
return False