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=b4e5c717f5e2c39ded81f0c6f7b0f9f61945befd;hpb=0ad00a491e7c39f126abcd087bc2743dbdc3a1af 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: