Fix doc string

This commit is contained in:
Dimitris Zlatanidis 2015-09-23 05:17:33 +03:00
parent 2068c8d9c0
commit 7cfe04fe41
2 changed files with 4 additions and 5 deletions

View file

@ -31,7 +31,7 @@ from slpkg.__metadata__ import MetaData as _meta_
class Download(object):
"""Downloader manager. Slpkg use wget by default but support
curl and aria2.
curl, aria2 and http
"""
def __init__(self, path, url, repo):
self.path = path
@ -46,7 +46,8 @@ class Download(object):
def start(self):
"""Download files using wget or other downloader.
Optional curl and aria2c"""
Optional curl, aria2c and hhtp
"""
dwn_count = 1
self._directory_prefix()
for dwn in self.url:

View file

@ -26,9 +26,7 @@ import hashlib
def md5(source):
"""
Return MD5 Checksum
"""
"""Return MD5 Checksum"""
with open(source) as file_to_check:
data = file_to_check.read()
return hashlib.md5(data).hexdigest()