ViewerMedium   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A export() 0 4 2
A __init__() 0 2 1
1
#!/usr/bin/python
2
# -*- coding: UTF-8 -*-
3
import webbrowser
4
5
6
class ViewerMedium(object):
7
    """Uses the system picture viewer to display an picture file.
8
    """
9
10
    def __init__(self, dependencies):
11
        pass
12
13
    def export(self, formattedProvenance, form=None):
14
        if formattedProvenance is None:
15
            return
16
        webbrowser.open(formattedProvenance)
17
18