1.1 --- a/vCalendar.py Mon Sep 22 17:08:57 2014 +0200
1.2 +++ b/vCalendar.py Mon Sep 22 18:26:59 2014 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Parsing of vCalendar and iCalendar files.
1.6
1.7 -Copyright (C) 2008, 2009, 2011, 2013 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2008, 2009, 2011, 2013, 2014 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -39,6 +39,8 @@
1.13 except NameError:
1.14 from sets import Set as set
1.15
1.16 +ParseError = vContent.ParseError
1.17 +
1.18 # Format details.
1.19
1.20 SECTION_TYPES = set([
2.1 --- a/vContent.py Mon Sep 22 17:08:57 2014 +0200
2.2 +++ b/vContent.py Mon Sep 22 18:26:59 2014 +0200
2.3 @@ -3,7 +3,8 @@
2.4 """
2.5 Parsing of vCard, vCalendar and iCalendar files.
2.6
2.7 -Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011, 2013 Paul Boddie <paul@boddie.org.uk>
2.8 +Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011, 2013,
2.9 + 2014 Paul Boddie <paul@boddie.org.uk>
2.10
2.11 This program is free software; you can redistribute it and/or modify it under
2.12 the terms of the GNU General Public License as published by the Free Software
2.13 @@ -55,6 +56,12 @@
2.14
2.15 default_encoding = "utf-8"
2.16
2.17 +class ParseError(Exception):
2.18 +
2.19 + "General parsing errors."
2.20 +
2.21 + pass
2.22 +
2.23 # Reader and parser classes.
2.24
2.25 class Reader: