aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Ritter <xeno@thehappy.de>2012-01-21 02:17:42 +0100
committerStefan Ritter <xeno@thehappy.de>2012-01-21 02:17:42 +0100
commitd82d649c04dee4af95c0f13f478e697f92500f20 (patch)
tree7ffc8bca95eff86b18cdcbca9088d45d83ceea44
parentb3da1c5e4e34a22eafa9ae495bf967ee5e778ae9 (diff)
Using pickle instead of marshal for serialization
-rwxr-xr-xblogthon.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/blogthon.cgi b/blogthon.cgi
index 9f4877b..9217901 100755
--- a/blogthon.cgi
+++ b/blogthon.cgi
@@ -18,7 +18,7 @@ import sys
import time
import locale
import re
-import marshal
+import pickle
from cgi import FieldStorage
from smtplib import SMTP
from hashlib import md5
@@ -232,7 +232,7 @@ if options.tags:
tagindex.append([tag.strip(), entry])
content.close()
tagfile = open(os.path.join(entries_dir, "tags"), "w")
- marshal.dump(tagindex, tagfile)
+ pickle.dump(tagindex, tagfile)
tagfile.close()
print("Index created!")
except: