Fix Python linting errors. (#3905)

This commit is contained in:
Robert Nishihara
2019-01-30 13:43:18 -08:00
committed by Philipp Moritz
parent 02766adeca
commit d06d9fc5d7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -775,7 +775,7 @@ class GlobalState(object):
num_tasks += self.redis_client.zcount(
event_log_set, min=0, max=time.time())
if num_tasks is 0:
if num_tasks == 0:
return 0, 0, 0
return overall_smallest, overall_largest, num_tasks
+1 -1
View File
@@ -97,7 +97,7 @@ def get_sliders(update):
with out_recursion:
smallest, largest, num_tasks = ray.global_state._job_length()
diff = largest - smallest
if num_tasks is not 0:
if num_tasks != 0:
# Describes the initial values that the slider/text box
# values should be set to.