demo   A
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 8
rs 10
c 0
b 0
f 0
wmc 0
ccs 3
cts 3
cp 1
1
from pkg_resources import DistributionNotFound, get_distribution
2
3 1
4
try:
5 1
    __version__ = get_distribution('TemplateDemo').version
6 1
except DistributionNotFound:
7
    __version__ = '(local)'
8