DictFormat   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 7
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A serializeList() 0 2 2
A serializeSingle() 0 2 1
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