From 7cfe04fe41eafa63d1357e1a942e28ac3ff19f56 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Wed, 23 Sep 2015 05:17:33 +0300 Subject: [PATCH] Fix doc string --- slpkg/downloader.py | 5 +++-- slpkg/md5sum.py | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/slpkg/downloader.py b/slpkg/downloader.py index ac613cca..53b12f0e 100644 --- a/slpkg/downloader.py +++ b/slpkg/downloader.py @@ -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: diff --git a/slpkg/md5sum.py b/slpkg/md5sum.py index 4e7ce06a..10fac1e4 100644 --- a/slpkg/md5sum.py +++ b/slpkg/md5sum.py @@ -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()