[Python-checkins] r66796 - doctools/trunk/sphinx/application.py
benjamin.peterson
python-checkins at python.org
Sat Oct 4 22:06:31 CEST 2008
Author: benjamin.peterson
Date: Sat Oct 4 22:06:30 2008
New Revision: 66796
Log:
silence some deprecation warnings
Modified:
doctools/trunk/sphinx/application.py
Modified: doctools/trunk/sphinx/application.py
==============================================================================
--- doctools/trunk/sphinx/application.py (original)
+++ doctools/trunk/sphinx/application.py Sat Oct 4 22:06:30 2008
@@ -39,7 +39,7 @@
category = 'Extension error'
def __init__(self, message, orig_exc=None):
- self.message = message
+ super(ExtensionError, self).__init__(message)
self.orig_exc = orig_exc
def __repr__(self):
@@ -49,9 +49,10 @@
return '%s(%r)' % (self.__class__.__name__, self.message)
def __str__(self):
+ parent_str = super(ExtensionError, self).__str__()
if self.orig_exc:
- return '%s (exception: %s)' % (self.message, self.orig_exc)
- return self.message
+ return '%s (exception: %s)' % (parent_str, self.orig_exc)
+ return parent_str
# List of all known core events. Maps name to arguments description.
More information about the Python-checkins
mailing list