Skip to content

Commit e44dc42

Browse files
committed
Fixed encoding of template
1 parent f96c869 commit e44dc42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage_badge/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_badge(total):
4141
string.
4242
"""
4343
template_path = os.path.join('templates', 'flat.svg')
44-
template = pkg_resources.resource_string(__name__, template_path)
44+
template = pkg_resources.resource_string(__name__, template_path).decode('utf8')
4545
return template.replace('{{ total }}', total)
4646

4747

0 commit comments

Comments
 (0)