fixed some bugs

parent d041fa98
Pipeline #60360 failed with stages
in 4 minutes and 5 seconds
......@@ -7,10 +7,12 @@
import time
from configobj import ConfigObj
from flask import Flask
from .cache import CacheManager
from .config import (ConfigObj, get_config_path)
from .config import get_config_path
from . import views # pylint: disable=unused-import
......@@ -13,7 +13,7 @@ from setuptools import (setup, find_packages)
def find_version(path):
"""Parse the __version__ metadata in the given file.
with open(path, "r") as fp:
with Path(path).open("r") as fp:
version_file =
version_match ="^__version__ = ['\"]([^'\"]*)['\"]",
version_file, re.M)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment