]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Pylint: examples: fix singleton comparison
authorMartin <martin.basti@gmail.com>
Sat, 2 Jul 2016 01:37:33 +0000 (03:37 +0200)
committerMartin <martin.basti@gmail.com>
Sat, 2 Jul 2016 01:37:33 +0000 (03:37 +0200)
examples/zonediff.py

index 641c0efadad9b1a529b524da5147005ef4a17b63..f388c170a7c42714a26c34921c3d82dc658d4cd6 100755 (executable)
@@ -237,7 +237,7 @@ The differences shown will be logical differences, not textual differences.
                         "Unable to retrieve revision %s of %s" % (newr, filename))
     if not opts.use_vc:
         old = _open(oldn, "Unable to open %s" % oldn)
-    if not opts.use_vc or newr == None:
+    if not opts.use_vc or newr is None:
         new = _open(newn, "Unable to open %s" % newn)
 
     if not old or not new: