diff options
| author | Aymeric Augustin | 2013-11-16 18:13:31 +0100 |
|---|---|---|
| committer | Aymeric Augustin | 2013-11-16 18:13:31 +0100 |
| commit | b34eba5e83b86a6c324542ca4ebddfd245e47097 (patch) | |
| tree | 809b1a2740185e09e252b2f1f26a749f1dc65520 | |
| parent | 3d639ab35c2ca038d738253b93b593a755756cff (diff) | |
| download | django-debug-toolbar-b34eba5e83b86a6c324542ca4ebddfd245e47097.tar.bz2 | |
Minor style improvement.
| -rw-r--r-- | debug_toolbar/__init__.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/debug_toolbar/__init__.py b/debug_toolbar/__init__.py index 61c4e7a..23bfa55 100644 --- a/debug_toolbar/__init__.py +++ b/debug_toolbar/__init__.py @@ -1,13 +1,13 @@ from __future__ import unicode_literals -__all__ = ('VERSION',) +__all__ = ['VERSION'] try: - VERSION = __import__('pkg_resources') \ - .get_distribution('django-debug-toolbar').version -except Exception as e: + import pkg_resources + VERSION = pkg_resources.get_distribution('django-debug-toolbar').version +except Exception: VERSION = 'unknown' |
