summaryrefslogtreecommitdiff
path: root/tbc_error_page
diff options
context:
space:
mode:
authorkinitrupti2016-10-24 12:32:11 +0530
committerkinitrupti2016-10-24 12:32:11 +0530
commiteb3321f80def84e84329f213e21ef5ac94d4ccd6 (patch)
tree4c26ad501f9387e3d16c389603ae1432bd2c64fd /tbc_error_page
parent6da84d8c334e16ebea6597d8b83d51552935ed00 (diff)
downloadPython-TBC-Interface-eb3321f80def84e84329f213e21ef5ac94d4ccd6.tar.gz
Python-TBC-Interface-eb3321f80def84e84329f213e21ef5ac94d4ccd6.tar.bz2
Python-TBC-Interface-eb3321f80def84e84329f213e21ef5ac94d4ccd6.zip
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