summaryrefslogtreecommitdiffstats
path: root/openstack/common/policy.py
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2013-01-12 10:11:08 +0000
committerGerrit Code Review <review@openstack.org>2013-01-12 10:11:08 +0000
commitbde8391028d1f60373c4edde61b5ee71f952828b (patch)
tree18976ac6f69fe861297bc589a7d316414ae464a9 /openstack/common/policy.py
parentd371e80815957a670377e9d348796714a1ae037c (diff)
parent9e5912f59e463e37dbe4505f9e79e9b254e64b87 (diff)
Merge "Fix pep8 E125 errors."
Diffstat (limited to 'openstack/common/policy.py')
-rw-r--r--openstack/common/policy.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/openstack/common/policy.py b/openstack/common/policy.py
index 5f2bf29..8f5a23a 100644
--- a/openstack/common/policy.py
+++ b/openstack/common/policy.py
@@ -574,19 +574,19 @@ class ParseState(object):
for reduction, methname in self.reducers:
if (len(self.tokens) >= len(reduction) and
- self.tokens[-len(reduction):] == reduction):
- # Get the reduction method
- meth = getattr(self, methname)
+ self.tokens[-len(reduction):] == reduction):
+ # Get the reduction method
+ meth = getattr(self, methname)
- # Reduce the token stream
- results = meth(*self.values[-len(reduction):])
+ # Reduce the token stream
+ results = meth(*self.values[-len(reduction):])
- # Update the tokens and values
- self.tokens[-len(reduction):] = [r[0] for r in results]
- self.values[-len(reduction):] = [r[1] for r in results]
+ # Update the tokens and values
+ self.tokens[-len(reduction):] = [r[0] for r in results]
+ self.values[-len(reduction):] = [r[1] for r in results]
- # Check for any more reductions
- return self.reduce()
+ # Check for any more reductions
+ return self.reduce()
def shift(self, tok, value):
"""Adds one more token to the state. Calls reduce()."""