summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-04-04 00:04:39 +0300
committerTill Maas <opensource@till.name>2011-04-14 17:22:44 +0200
commit246222f7d118ad2cb4d06b0a5e8ddb677c0b43c0 (patch)
treefaa7c3763be40fc7c14eca889ad019f14d529991
parentee92262897fbc68cb6e72be2bef528e6987f9042 (diff)
downloadcnucnu-246222f7d118ad2cb4d06b0a5e8ddb677c0b43c0.tar.gz
cnucnu-246222f7d118ad2cb4d06b0a5e8ddb677c0b43c0.tar.xz
cnucnu-246222f7d118ad2cb4d06b0a5e8ddb677c0b43c0.zip
Doc fixes.
-rw-r--r--cnucnu/helper.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/cnucnu/helper.py b/cnucnu/helper.py
index 2026574..81bdb5f 100644
--- a/cnucnu/helper.py
+++ b/cnucnu/helper.py
@@ -180,7 +180,7 @@ def split_rc(version):
if rc:
return (v, rc)
else:
- # if version contains a dash, but no release candidate string is found, v != version, therfore use version here
+ # if version contains a dash, but no release candidate string is found, v != version, therefore use version here
# Example version: 1.8.23-20100128-r1100
# Then: v=1.8.23, but rc=""
return (version, "")
@@ -207,11 +207,9 @@ def cmp_upstream_repo(upstream_v, repo_vr):
return upstream_cmp(upstream_v, repo_version)
-
-
-""" return a dict that only contains keys that are in key_list
-"""
def filter_dict(d, key_list):
+ """ return a dict that only contains keys that are in key_list
+ """
return dict([v for v in d.items() if v[0] in key_list])
def secure_download(url, cainfo=""):