summaryrefslogtreecommitdiff
path: root/tbc_error_page/models.py
diff options
context:
space:
mode:
authorTrupti Rajesh Kini2016-10-24 15:00:37 +0530
committerGitHub2016-10-24 15:00:37 +0530
commit27d47a26dd9c7765bbfda112eddbebe8f3679460 (patch)
tree4c26ad501f9387e3d16c389603ae1432bd2c64fd /tbc_error_page/models.py
parentc5c3c7b6c4794d960ead6137d251cd9b8f423aa4 (diff)
parenteb3321f80def84e84329f213e21ef5ac94d4ccd6 (diff)
downloadPython-TBC-Interface-27d47a26dd9c7765bbfda112eddbebe8f3679460.tar.gz
Python-TBC-Interface-27d47a26dd9c7765bbfda112eddbebe8f3679460.tar.bz2
Python-TBC-Interface-27d47a26dd9c7765bbfda112eddbebe8f3679460.zip
Merge pull request #2 from kinitrupti/upgrade-django-1.9
Upgrade django 1.9
Diffstat (limited to 'tbc_error_page/models.py')
-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