ViewerMedium.export()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
c 1
b 0
f 0
dl 0
loc 4
rs 10
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