diff options
author | Trupti Rajesh Kini | 2016-10-24 15:00:37 +0530 |
---|---|---|
committer | GitHub | 2016-10-24 15:00:37 +0530 |
commit | 27d47a26dd9c7765bbfda112eddbebe8f3679460 (patch) | |
tree | 4c26ad501f9387e3d16c389603ae1432bd2c64fd /tbc_error_page/models.py | |
parent | c5c3c7b6c4794d960ead6137d251cd9b8f423aa4 (diff) | |
parent | eb3321f80def84e84329f213e21ef5ac94d4ccd6 (diff) | |
download | Python-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.py | 4 |
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 |