X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FSchedUtils.py;h=b4c57217bd6e3d78ce49bd250d7d0aa5cab90dcd;hp=ec18b98dac14fba4a4e8389000c6a5b927cb858c;hb=67f247b4015b76641c6fab7c49e7d9862043c856;hpb=d7fed63ae2b5d7b3d1f67f572da2d23388f22018 diff --git a/resources/libraries/python/SchedUtils.py b/resources/libraries/python/SchedUtils.py index ec18b98dac..b4c57217bd 100644 --- a/resources/libraries/python/SchedUtils.py +++ b/resources/libraries/python/SchedUtils.py @@ -45,7 +45,7 @@ class SchedUtils(object): print 'Reading VPP worker thread PID failed.' else: for pid in out.split("\n"): - if len(pid) > 0 and pid[0] != "#": + if pid and pid[0] != '#': SchedUtils.set_proc_scheduling_rr(node, int(pid)) break else: