Remove escape character in string format
String format can use escape character '\' to break lines, but it requires the continuous line not be aligned or the spaces will be included too. This patch uses parentheses to format string, and removes the '\'. Change-Id: I6c007d48d9b99d102c82b4d93ef6f825828e9e20
This commit is contained in:
parent
69a9bfa3a7
commit
570861e51c
@ -103,8 +103,8 @@ class RPCPublisher(publisher.PublisherBase):
|
||||
self.local_queue = []
|
||||
|
||||
if self.policy in ['queue', 'drop']:
|
||||
LOG.info(_('Publishing policy set to %s, \
|
||||
override backend retry config to 1') % self.policy)
|
||||
LOG.info(_('Publishing policy set to %s, '
|
||||
'override backend retry config to 1') % self.policy)
|
||||
override_backend_retry_config(1)
|
||||
|
||||
elif self.policy == 'default':
|
||||
|
@ -368,8 +368,8 @@ class Connection(object):
|
||||
:param limit: Maximum number of results to return.
|
||||
"""
|
||||
|
||||
raise NotImplementedError('Complex query for samples \
|
||||
is not implemented.')
|
||||
raise NotImplementedError('Complex query for samples '
|
||||
'is not implemented.')
|
||||
|
||||
@staticmethod
|
||||
def query_alarms(filter_expr=None, orderby=None, limit=None):
|
||||
@ -380,8 +380,8 @@ class Connection(object):
|
||||
:param limit: Maximum number of results to return.
|
||||
"""
|
||||
|
||||
raise NotImplementedError('Complex query for alarms \
|
||||
is not implemented.')
|
||||
raise NotImplementedError('Complex query for alarms '
|
||||
'is not implemented.')
|
||||
|
||||
@staticmethod
|
||||
def query_alarm_history(filter_expr=None, orderby=None, limit=None):
|
||||
@ -392,8 +392,8 @@ class Connection(object):
|
||||
:param limit: Maximum number of results to return.
|
||||
"""
|
||||
|
||||
raise NotImplementedError('Complex query for alarms \
|
||||
history is not implemented.')
|
||||
raise NotImplementedError('Complex query for alarms '
|
||||
'history is not implemented.')
|
||||
|
||||
@staticmethod
|
||||
def get_capabilities():
|
||||
|
Loading…
x
Reference in New Issue
Block a user