Fix mypy and regex flag

This commit is contained in:
Felix Yan 2020-09-24 04:51:28 +08:00
parent c9b689d67b
commit d7624defd7
No known key found for this signature in database
GPG key ID: 786C63F330D7CB92

View file

@ -2,7 +2,7 @@
# Copyright (c) 2020 Felix Yan <felixonmars@archlinux.org>, et al.
import re
from nvchecker_source.cmd import run_cmd
from .cmd import run_cmd # type: ignore
async def get_version(
name, conf, *, cache, keymanager=None
@ -12,4 +12,4 @@ async def get_version(
data = await cache.get(cmd, run_cmd)
regex = "(?<=refs/tags/).*$"
return re.findall(regex, data)
return re.findall(regex, data, re.MULTILINE)