summaryrefslogtreecommitdiffstats
path: root/openstack
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
parentd371e80815957a670377e9d348796714a1ae037c (diff)
parent9e5912f59e463e37dbe4505f9e79e9b254e64b87 (diff)
downloadoslo-bde8391028d1f60373c4edde61b5ee71f952828b.tar.gz
oslo-bde8391028d1f60373c4edde61b5ee71f952828b.tar.xz
oslo-bde8391028d1f60373c4edde61b5ee71f952828b.zip
Merge "Fix pep8 E125 errors."
Diffstat (limited to 'openstack')
-rw-r--r--openstack/common/iniparser.py2
-rw-r--r--openstack/common/log.py4
-rw-r--r--openstack/common/policy.py20
-rw-r--r--openstack/common/rootwrap/filters.py6
4 files changed, 16 insertions, 16 deletions
diff --git a/openstack/common/iniparser.py b/openstack/common/iniparser.py
index 2412844..9bf399f 100644
--- a/openstack/common/iniparser.py
+++ b/openstack/common/iniparser.py
@@ -54,7 +54,7 @@ class BaseParser(object):
value = value.strip()
if ((value and value[0] == value[-1]) and
- (value[0] == "\"" or value[0] == "'")):
+ (value[0] == "\"" or value[0] == "'")):
value = value[1:-1]
return key.strip(), [value]
diff --git a/openstack/common/log.py b/openstack/common/log.py
index d88a2c9..14d5138 100644
--- a/openstack/common/log.py
+++ b/openstack/common/log.py
@@ -259,7 +259,7 @@ class JSONFormatter(logging.Formatter):
class PublishErrorsHandler(logging.Handler):
def emit(self, record):
if ('openstack.common.notifier.log_notifier' in
- CONF.notification_driver):
+ CONF.notification_driver):
return
notifier.api.notify(None, 'error.publisher',
'error_notification',
@@ -425,7 +425,7 @@ class LegacyFormatter(logging.Formatter):
self._fmt = CONF.logging_default_format_string
if (record.levelno == logging.DEBUG and
- CONF.logging_debug_format_suffix):
+ CONF.logging_debug_format_suffix):
self._fmt += " " + CONF.logging_debug_format_suffix
# Cache this on the record, Logger will respect our formated copy
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()."""
diff --git a/openstack/common/rootwrap/filters.py b/openstack/common/rootwrap/filters.py
index 632e8d5..905bbab 100644
--- a/openstack/common/rootwrap/filters.py
+++ b/openstack/common/rootwrap/filters.py
@@ -95,9 +95,9 @@ class DnsmasqFilter(CommandFilter):
def match(self, userargs):
if (userargs[0] == 'env' and
- userargs[1].startswith(self.CONFIG_FILE_ARG) and
- userargs[2].startswith('NETWORK_ID=') and
- userargs[3] == 'dnsmasq'):
+ userargs[1].startswith(self.CONFIG_FILE_ARG) and
+ userargs[2].startswith('NETWORK_ID=') and
+ userargs[3] == 'dnsmasq'):
return True
return False