From fc7da183c7dc9927793eecf237c2bb5fb6f357b9 Mon Sep 17 00:00:00 2001 From: Steve Martinelli Date: Mon, 16 Feb 2015 17:19:08 -0500 Subject: [PATCH] Fix minor spelling issues in oslo.policy Change-Id: I351ab4f335d3bbb642e9e9bc225dd8725559989b --- oslo_policy/_parser.py | 2 +- oslo_policy/policy.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/oslo_policy/_parser.py b/oslo_policy/_parser.py index dfa51415..5a6eab63 100644 --- a/oslo_policy/_parser.py +++ b/oslo_policy/_parser.py @@ -228,7 +228,7 @@ def _parse_list_rule(rule): # Outer list is joined by "or"; inner list by "and" or_list = [] for inner_rule in rule: - # Elide empty inner lists + # Skip empty inner lists if not inner_rule: continue diff --git a/oslo_policy/policy.py b/oslo_policy/policy.py index 87aad7c5..c264b511 100644 --- a/oslo_policy/policy.py +++ b/oslo_policy/policy.py @@ -409,7 +409,7 @@ class Enforcer(object): {'path': path}) def _get_policy_path(self, path): - """Locate the policy json data file/path. + """Locate the policy JSON data file/path. :param path: It's value can be a full path or related path. When full path specified, this function just returns the full