# HG changeset patch # User Paul Boddie # Date 1411403219 -7200 # Node ID ffea599ea31be165d752d24a8eee766f6f3898bc # Parent 1b333ec33b11bc651a7fb9f79f28d4d841ee8179 Added missing ParseError class. diff -r 1b333ec33b11 -r ffea599ea31b vCalendar.py --- a/vCalendar.py Mon Sep 22 17:08:57 2014 +0200 +++ b/vCalendar.py Mon Sep 22 18:26:59 2014 +0200 @@ -3,7 +3,7 @@ """ Parsing of vCalendar and iCalendar files. -Copyright (C) 2008, 2009, 2011, 2013 Paul Boddie +Copyright (C) 2008, 2009, 2011, 2013, 2014 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -39,6 +39,8 @@ except NameError: from sets import Set as set +ParseError = vContent.ParseError + # Format details. SECTION_TYPES = set([ diff -r 1b333ec33b11 -r ffea599ea31b vContent.py --- a/vContent.py Mon Sep 22 17:08:57 2014 +0200 +++ b/vContent.py Mon Sep 22 18:26:59 2014 +0200 @@ -3,7 +3,8 @@ """ Parsing of vCard, vCalendar and iCalendar files. -Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011, 2013 Paul Boddie +Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011, 2013, + 2014 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -55,6 +56,12 @@ default_encoding = "utf-8" +class ParseError(Exception): + + "General parsing errors." + + pass + # Reader and parser classes. class Reader: