diff scripts/undistort-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 9c429c7efe89
children d72e4bcc1e36
line wrap: on
line diff
--- a/scripts/undistort-video.py	Tue Mar 24 14:17:12 2015 +0100
+++ b/scripts/undistort-video.py	Tue Mar 24 18:11:28 2015 +0100
@@ -33,7 +33,7 @@
     ret = True
     frameNum = args.firstFrameNum
     capture.set(cv2.cv.CV_CAP_PROP_POS_FRAMES, args.firstFrameNum)
-    if args.lastFrameNum == None:
+    if args.lastFrameNum is None:
         from sys import maxint
         lastFrameNum = maxint
     else: