Fix missing whitespace after '=' in python/js code.

This commit is contained in:
Tim Abbott 2016-04-20 11:36:09 -07:00
parent ece96ef3fe
commit a72385246e
4 changed files with 6 additions and 3 deletions

View File

@ -339,7 +339,7 @@ function get_predicate(operators) {
assert_same_operators(result, operators);
}
string ='stream:Foo topic:Bar yo';
string = 'stream:Foo topic:Bar yo';
operators = [
{operator: 'stream', operand: 'Foo'},
{operator: 'topic', operand: 'Bar'},

View File

@ -58,7 +58,7 @@ def noon_of(day=datetime.now()):
def points_during_day(data, noon):
"""Returns all the points in the dataset that occur in the 12 hours around
the datetime object that is passed in. data must be sorted."""
before =datetime_to_timestamp(noon - timedelta(hours=12))
before = datetime_to_timestamp(noon - timedelta(hours=12))
after = datetime_to_timestamp(noon + timedelta(hours=12))
between = [pt for pt in data if pt[1] > before and pt[1] < after]

View File

@ -131,6 +131,9 @@ js_rules = [
'description': 'The module blueslip has no function warning, try using blueslip.warn'},
{'pattern': '[)]{$',
'description': 'Missing space between ) and {'},
# This rule is a bit funky in construction to avoid triggering on itself
{'pattern': " =" + '[^ =>~"]',
'description': 'Missing whitespace after "="'},
{'pattern': 'else{$',
'description': 'Missing space between else and {'},
] + whitespace_rules

View File

@ -116,7 +116,7 @@ class SimpleQueueClient(object):
def drain_queue(self, queue_name, json=False):
"Returns all messages in the desired queue"
messages =[]
messages = []
def opened():
while True:
(meta, _, message) = self.channel.basic_get(queue_name)