From: Tomas Krizek Date: Wed, 18 Jul 2018 13:35:51 +0000 (+0200) Subject: examples/zonediff: fix pylint (singleton-comparison) X-Git-Tag: v1.16.0~18^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bdef72c6eec0e6e6096eee2ce52217d5a769455e;p=thirdparty%2Fdnspython.git examples/zonediff: fix pylint (singleton-comparison) --- diff --git a/examples/zonediff.py b/examples/zonediff.py index 69851a18..b05d7a46 100755 --- a/examples/zonediff.py +++ b/examples/zonediff.py @@ -238,19 +238,19 @@ The differences shown will be logical differences, not textual differences. if opts.use_bzr: old = _open(["bzr", "cat", "-r" + oldr, filename], "Unable to retrieve revision %s of %s" % (oldr, filename)) - if newr != None: + if newr is not None: new = _open(["bzr", "cat", "-r" + newr, filename], "Unable to retrieve revision %s of %s" % (newr, filename)) elif opts.use_git: old = _open(["git", "show", oldn], "Unable to retrieve revision %s of %s" % (oldr, filename)) - if newr != None: + if newr is not None: new = _open(["git", "show", newn], "Unable to retrieve revision %s of %s" % (newr, filename)) elif opts.use_rcs: old = _open(["co", "-q", "-p", "-r" + oldr, filename], "Unable to retrieve revision %s of %s" % (oldr, filename)) - if newr != None: + if newr is not None: new = _open(["co", "-q", "-p", "-r" + newr, filename], "Unable to retrieve revision %s of %s" % (newr, filename)) if not opts.use_vc: