DictFormat.serializeList()   A
last analyzed

Complexity

Conditions 2

Size

Total Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
1
from niprov.format import Format
2
3
4
class DictFormat(Format):
5
6
    def serializeSingle(self, item):
7
        return item.provenance
8
9
    def serializeList(self, fileList):
10
        return [item.provenance for item in fileList]
11
12
13