diff options
| author | David Cramer | 2011-09-26 17:30:06 -0700 | 
|---|---|---|
| committer | David Cramer | 2011-09-26 17:30:06 -0700 | 
| commit | 5e8cc5961c74ca57b0eb5d6ac387ee81604443ab (patch) | |
| tree | 2cf8591fbed3963a4ef7aec2d7468caf2ea918f2 | |
| parent | 49949387c863ecbbd043067c120b454d9377492a (diff) | |
| download | django-debug-toolbar-5e8cc5961c74ca57b0eb5d6ac387ee81604443ab.tar.bz2 | |
Dont use ternary operator
| -rw-r--r-- | debug_toolbar/utils/tracking/db.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/debug_toolbar/utils/tracking/db.py b/debug_toolbar/utils/tracking/db.py index 1fa7b36..97a9241 100644 --- a/debug_toolbar/utils/tracking/db.py +++ b/debug_toolbar/utils/tracking/db.py @@ -27,7 +27,9 @@ class ThreadLocalState(local):      @property      def Wrapper(self): -        return NormalCursorWrapper if self.enabled else ExceptionCursorWrapper +        if self.enabled: +            return NormalCursorWrapper +        return ExceptionCursorWrapper      def recording(self, v):          self.enabled = v | 
