diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-04 16:32:03 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-04 16:32:03 +0300 |
commit | 4417aee6f26adabc46552b53481656d9e37281b1 (patch) | |
tree | 16c671c1f1089f09142a5c17f231ab0ce17d8240 /obnamlib/__init__.py | |
parent | 572faf19054c59bf6ecf181b448c4392b35548df (diff) | |
download | obnam-4417aee6f26adabc46552b53481656d9e37281b1.tar.gz |
Cleanups suggested by pep8
Diffstat (limited to 'obnamlib/__init__.py')
-rw-r--r-- | obnamlib/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/obnamlib/__init__.py b/obnamlib/__init__.py index d4b5e451..4d2479c4 100644 --- a/obnamlib/__init__.py +++ b/obnamlib/__init__.py @@ -20,11 +20,12 @@ import cliapp __version__ = '1.11' - # Import _obnam if it is there. We need to be able to do things without # it, especially at build time, while we're generating manual pages. # If _obnam is not there, substitute a dummy that throws an exception # if used. + + class DummyExtension(object): def __getattr__(self, name): raise Exception('Trying to use _obnam, but that was not found.') @@ -39,6 +40,7 @@ except ImportError: from structurederror import StructuredError + class ObnamError(StructuredError): pass |