diff scripts/play-video.py @ 636:3058e00887bc

removed all issues because of tests with None, using is instead of == or !=
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Tue, 24 Mar 2015 18:11:28 +0100
parents 1917db662aa7
children 51269511229b
line wrap: on
line diff
--- a/scripts/play-video.py	Tue Mar 24 14:17:12 2015 +0100
+++ b/scripts/play-video.py	Tue Mar 24 18:11:28 2015 +0100
@@ -13,11 +13,11 @@
 args = parser.parse_args()
 
 firstFrameNum = 0
-if args.firstFrameNum != None:
+if args.firstFrameNum is not None:
     firstFrameNum = args.firstFrameNum
 
 frameRate = -1
-if args.frameRate != None:
+if args.frameRate is not None:
     frameRate = args.frameRate
 
 cvutils.playVideo(args.videoFilename, firstFrameNum, frameRate, rescale = args.rescale)