Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use flask.__version__ instead of pkg_resources.

This is a simpler way of getting the Flask version.
  • Loading branch information...
commit 58b8b63a8a8e9d1b61d8fc1a0f84f8b2a697efc3 1 parent 60a9b4f
@jparise jparise authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 flask_debugtoolbar/panels/versions.py
View
7 flask_debugtoolbar/panels/versions.py
@@ -1,14 +1,11 @@
-import pkg_resources
-
+from flask import __version__ as flask_version
from flask_debugtoolbar.panels import DebugPanel
_ = lambda x: x
-flask_version = pkg_resources.get_distribution('Flask').version
-
class VersionDebugPanel(DebugPanel):
"""
- Panel that displays the Django version.
+ Panel that displays the Flask version.
"""
name = 'Version'
has_content = False
Please sign in to comment.
Something went wrong with that request. Please try again.