Change isAlive() to is_alive()

This commit is contained in:
Karl Moos
2020-12-07 03:34:05 -06:00
committed by GitHub
parent 5d03c62b39
commit 0c00397f78

View File

@@ -18,9 +18,9 @@ def non_blocking():
# t in this case is a thread
t = c.open_video_stream(callback=inner_callback)
print(t.isAlive())
print(t.is_alive())
while True:
if not t.isAlive():
if not t.is_alive():
print("continuing")
break
# stop the stream