aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdlpcvp.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/dlpcvp.py b/dlpcvp.py
index 93734f8..1802d0a 100755
--- a/dlpcvp.py
+++ b/dlpcvp.py
@@ -155,7 +155,8 @@ def parse_spec(spec_file: Union[str, bytes]) -> LooseVersion:
return LooseVersion(rest_of_line)
-def get_spec_name(req: Request, proj: str, pkg: str, etag: OStr = None) -> OStr:
+def get_spec_name(req: Request, proj: str, pkg: str, etag: OStr = None) -> \
+ OStr:
"""Acquire version from the listing of the project directory.
"""
spec_files = [] # type: List[str]
@@ -199,7 +200,8 @@ def get_spec_name(req: Request, proj: str, pkg: str, etag: OStr = None) -> OStr:
return None
-def get_version_from_pypi(name: str, con: DBConnType = None) -> Optional[LooseVersion]:
+def get_version_from_pypi(name: str, con: DBConnType = None) -> \
+ Optional[LooseVersion]:
"""
For the given name of module return the latest version available on PyPI.
"""