diff options
author | Tomas Krizek <tomas.krizek@nic.cz> | 2018-07-18 15:35:51 +0200 |
---|---|---|
committer | Tomas Krizek <tomas.krizek@nic.cz> | 2018-07-18 15:35:51 +0200 |
commit | bdef72c6eec0e6e6096eee2ce52217d5a769455e (patch) | |
tree | 5709947d4a61936ea72bfe68ef5f9d82b33aa857 /examples | |
parent | f054938849c4c8d651fc0742e6889922c74b7d85 (diff) | |
download | dnspython-bdef72c6eec0e6e6096eee2ce52217d5a769455e.tar.gz |
examples/zonediff: fix pylint (singleton-comparison)
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/zonediff.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/zonediff.py b/examples/zonediff.py index 69851a1..b05d7a4 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: |