Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/serialize.py
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-06-24 17:35:21 +0200
committerArthur de Jong <arthur@arthurdejong.org>2006-06-24 17:35:21 +0200
commit77d35b98c38b7beeab931e3fa5d1f13eaff9125e (patch)
tree2d29e92b989704e68609c45afd3b99a07dbd25ed /serialize.py
parente0a2416389369199bad228c644e3b09a9b8418a7 (diff)
store internal, external and yanked regular expressions in a map allowing them to be serialized
git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@293 86f53f14-5ff3-0310-afe5-9b438ce3f40c
Diffstat (limited to 'serialize.py')
-rw-r--r--serialize.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/serialize.py b/serialize.py
index 51c309b..be8cb3e 100644
--- a/serialize.py
+++ b/serialize.py
@@ -185,11 +185,11 @@ def serialize_site(fp, site):
"""Store the information of the site in the specified file."""
for url in site._internal_urls:
_writestring(fp, 'internal_url', url)
- for res in site._internal_res:
+ for res in site._internal_res.keys():
_writestring(fp, 'internal_re', res)
- for res in site._external_res:
+ for res in site._external_res.keys():
_writestring(fp, 'external_re', res)
- for res in site._yanked_res:
+ for res in site._yanked_res.keys():
_writestring(fp, 'yanked_re', res)
fp.write('\n')