content_hash.decodes.utf8.decode()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 10
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 2
nop 1
dl 0
loc 10
ccs 0
cts 2
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
"""Decode module for UTF8."""
2
3
def decode(value: bytes) -> str:
4
    """
5
    Decode UTF8.
6
7
    :param value: an encoded content
8
9
    :return: the decoded content
10
    """
11
12
    return value.decode('utf-8')
13