mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Fix doc string
This commit is contained in:
parent
2068c8d9c0
commit
7cfe04fe41
2 changed files with 4 additions and 5 deletions
|
@ -31,7 +31,7 @@ from slpkg.__metadata__ import MetaData as _meta_
|
||||||
|
|
||||||
class Download(object):
|
class Download(object):
|
||||||
"""Downloader manager. Slpkg use wget by default but support
|
"""Downloader manager. Slpkg use wget by default but support
|
||||||
curl and aria2.
|
curl, aria2 and http
|
||||||
"""
|
"""
|
||||||
def __init__(self, path, url, repo):
|
def __init__(self, path, url, repo):
|
||||||
self.path = path
|
self.path = path
|
||||||
|
@ -46,7 +46,8 @@ class Download(object):
|
||||||
|
|
||||||
def start(self):
|
def start(self):
|
||||||
"""Download files using wget or other downloader.
|
"""Download files using wget or other downloader.
|
||||||
Optional curl and aria2c"""
|
Optional curl, aria2c and hhtp
|
||||||
|
"""
|
||||||
dwn_count = 1
|
dwn_count = 1
|
||||||
self._directory_prefix()
|
self._directory_prefix()
|
||||||
for dwn in self.url:
|
for dwn in self.url:
|
||||||
|
|
|
@ -26,9 +26,7 @@ import hashlib
|
||||||
|
|
||||||
|
|
||||||
def md5(source):
|
def md5(source):
|
||||||
"""
|
"""Return MD5 Checksum"""
|
||||||
Return MD5 Checksum
|
|
||||||
"""
|
|
||||||
with open(source) as file_to_check:
|
with open(source) as file_to_check:
|
||||||
data = file_to_check.read()
|
data = file_to_check.read()
|
||||||
return hashlib.md5(data).hexdigest()
|
return hashlib.md5(data).hexdigest()
|
||||||
|
|
Loading…
Reference in a new issue