From 0d2acfa2654403db30c1aeca4a58039c3c365ee9 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 4 Jun 2006 20:41:25 +0000 Subject: 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 --- serialize.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(',') ] -- cgit v1.2.3