content_hash.encodes.utf8   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 13
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Function

Rating   Name   Duplication   Size   Complexity  
A encode() 0 10 1
1
"""Encode module for UTF8."""
2
3
def encode(value):
4
    """
5
    Encode UTF8.
6
7
    :param bytes value: a decoded content
8
9
    :return: the encoded content
10
    :rtype: bytes
11
    """
12
    return value.encode('utf-8')
13