From: Martin Date: Sat, 2 Jul 2016 01:37:33 +0000 (+0200) Subject: Pylint: examples: fix singleton comparison X-Git-Tag: v1.15.0~40^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dade35289dc6bb58078821dc34c385b5af5a4f54;p=thirdparty%2Fdnspython.git Pylint: examples: fix singleton comparison --- diff --git a/examples/zonediff.py b/examples/zonediff.py index 641c0efa..f388c170 100755 --- a/examples/zonediff.py +++ b/examples/zonediff.py @@ -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: