Move getting module source to util.

This commit is contained in:
Georg Brandl
2010-01-13 23:43:43 +01:00
parent cc35b402d9
commit 177e0d19ee
3 changed files with 51 additions and 34 deletions

View File

@@ -46,3 +46,11 @@ class ExtensionError(SphinxError):
class ThemeError(SphinxError):
category = 'Theme error'
class PycodeError(Exception):
def __str__(self):
res = self.args[0]
if len(self.args) > 1:
res += ' (exception was: %r)' % self.args[1]
return res