Skip to content

Commit

Permalink
__slots__ for the exceptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan committed Jun 5, 2012
1 parent 0b31715 commit 54df311
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbkit.py
Expand Up @@ -53,21 +53,21 @@ class NoContext(StandardError):
"""
You are attempting to use dbkit outside of a database context.
"""
pass
__slots__ = ()


class NotSupported(StandardError):
"""
You are attempting something unsupported.
"""
pass
__slots__ = ()


class AbortTransaction(Exception):
"""
Raised to signal that code within the transaction wants to abort it.
"""
pass
__slots__ = ()

# Contexts {{{

Expand Down

0 comments on commit 54df311

Please sign in to comment.