Using pickle instead of marshal for serialization
This commit is contained in:
parent
b3da1c5e4e
commit
d82d649c04
@ -18,7 +18,7 @@ import sys
|
|||||||
import time
|
import time
|
||||||
import locale
|
import locale
|
||||||
import re
|
import re
|
||||||
import marshal
|
import pickle
|
||||||
from cgi import FieldStorage
|
from cgi import FieldStorage
|
||||||
from smtplib import SMTP
|
from smtplib import SMTP
|
||||||
from hashlib import md5
|
from hashlib import md5
|
||||||
@ -232,7 +232,7 @@ if options.tags:
|
|||||||
tagindex.append([tag.strip(), entry])
|
tagindex.append([tag.strip(), entry])
|
||||||
content.close()
|
content.close()
|
||||||
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
tagfile = open(os.path.join(entries_dir, "tags"), "w")
|
||||||
marshal.dump(tagindex, tagfile)
|
pickle.dump(tagindex, tagfile)
|
||||||
tagfile.close()
|
tagfile.close()
|
||||||
print("Index created!")
|
print("Index created!")
|
||||||
except:
|
except:
|
||||||
|
Loading…
Reference in New Issue
Block a user