Reword the comment a bit.
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/663f507d Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/663f507d Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/663f507d Branch: refs/heads/trunk Commit: 663f507d732e40bd71901abd15906558a69b09ad Parents: f87f945 Author: Tomaz Muraus <to...@apache.org> Authored: Sat Jan 30 22:37:22 2016 +0100 Committer: Tomaz Muraus <to...@apache.org> Committed: Sat Jan 30 22:37:37 2016 +0100 ---------------------------------------------------------------------- libcloud/common/openstack_identity.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/663f507d/libcloud/common/openstack_identity.py ---------------------------------------------------------------------- diff --git a/libcloud/common/openstack_identity.py b/libcloud/common/openstack_identity.py index ca8b923..e8cc6a8 100644 --- a/libcloud/common/openstack_identity.py +++ b/libcloud/common/openstack_identity.py @@ -233,12 +233,10 @@ class OpenStackServiceCatalog(object): endpoints = [] for entry in self._entries: - """ - if XXX and YYYY != XXX - provides support for partials lookups - i.e. This lets you pass in only one of them, neither, or both, - and it does the right thing in all cases. - """ + # Note: "if XXX and YYY != XXX" comparison is used to support + # partial lookups. + # This allows user to pass in only one argument to the method (only + # service_type or name), both of them or neither. if service_type and entry.service_type != service_type: continue