From 4c73f98047c06f7d8cf326871aafbc91381e00f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Tue, 28 Jun 2016 15:11:11 +0200 Subject: [PATCH] Revert "Tiny typo in comment (iff instead of if)" 'iff' means 'if and only if', it's not a typo. This reverts commit 5355e4e359e4554a4590f5a2d3ca0f537dc02d02. --- pillar/application/modules/latest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pillar/application/modules/latest.py b/pillar/application/modules/latest.py index bad09e06..3ac46a5a 100644 --- a/pillar/application/modules/latest.py +++ b/pillar/application/modules/latest.py @@ -41,7 +41,7 @@ def latest_nodes(db_filter, projection, py_filter, limit): def has_public_project(node_doc): - """Returns True if the project the node belongs to is public.""" + """Returns True iff the project the node belongs to is public.""" project_id = node_doc.get('project') return is_project_public(project_id) @@ -49,7 +49,7 @@ def has_public_project(node_doc): # TODO: cache result, at least for a limited amt. of time, or for this HTTP request. def is_project_public(project_id): - """Returns True if the project is public.""" + """Returns True iff the project is public.""" project = current_app.data.driver.db['projects'].find_one(project_id) if not project: