Skip to content

Commit 1b2dbb9

Browse files
committed
'fix the warnings from 'is not 0' to '!= 0' in management.py
1 parent 586c79f commit 1b2dbb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

osquery/management.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def start_watcher(client, interval):
191191
try:
192192
while True:
193193
status = client.extension_manager_client().ping()
194-
if status.code is not 0:
194+
if status.code != 0:
195195
break
196196
time.sleep(interval)
197197
except socket.error:
@@ -248,7 +248,7 @@ def start_extension(name="<unknown>",
248248
message=message,
249249
)
250250

251-
if status.code is not 0:
251+
if status.code != 0:
252252
raise ExtensionException(
253253
code=1,
254254
message=status.message,
@@ -300,7 +300,7 @@ def deregister_extension():
300300
message=message,
301301
)
302302

303-
if status.code is not 0:
303+
if status.code != 0:
304304
raise ExtensionException(
305305
code=1,
306306
message=status.message,

0 commit comments

Comments
 (0)