Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2006-06-04 22:41:25 +0200
committerArthur de Jong <arthur@arthurdejong.org>2006-06-04 22:41:25 +0200
commit0d2acfa2654403db30c1aeca4a58039c3c365ee9 (patch)
tree3f8f80900a2e3fc10183e42a9bf5400b1d30cee6
parent4c1ab9c8fbbdf679a039bf03c6354af2e6448c9d (diff)
make DeSerializeException a class instead of a function and add FIXME
git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@287 86f53f14-5ff3-0310-afe5-9b438ce3f40c
-rw-r--r--serialize.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/serialize.py b/serialize.py
index 057ac5c..ada18a0 100644
--- a/serialize.py
+++ b/serialize.py
@@ -74,7 +74,7 @@ _keyvaluepattern = re.compile('^([a-z0-9_-]+) *= *(.*)$')
_commentpattern = re.compile('^[;#]')
# exception class
-def DeSerializeException(Exception):
+class DeSerializeException(Exception):
"""An exception class signalling a problem in parsing some
value."""
pass
@@ -173,6 +173,7 @@ def _readdate(txt):
def _readlist(txt):
"""nterpret the string as a list of strings."""
+ # FIXME: do not split on comma's in quoted strings
return [ _readstring(x.strip())
for x in txt.split(',') ]