diff options
author | Brian May <brian@linuxpenguins.xyz> | 2018-06-18 17:11:31 +1000 |
---|---|---|
committer | Brian May <brian@linuxpenguins.xyz> | 2018-07-15 09:03:43 +1000 |
commit | 7d08ad9158507856c31222fbbd12b2f8ba238c4d (patch) | |
tree | 0af73b104c364b6c1d1bd58a77ad19b168823a7f /bin | |
parent | e76615770ebaa46808ff548412d3b508919f6497 (diff) |
Replace <> with != for Python 3.6 compatibility
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/apt-update-file | 2 | ||||
-rwxr-xr-x | bin/check-syntax | 4 | ||||
-rwxr-xr-x | bin/list-queue | 2 | ||||
-rwxr-xr-x | bin/show-debsecan | 2 | ||||
-rwxr-xr-x | bin/tracker_service.py | 12 |
5 files changed, 11 insertions, 11 deletions
diff --git a/bin/apt-update-file b/bin/apt-update-file index 6b253009db..081b6211ca 100755 --- a/bin/apt-update-file +++ b/bin/apt-update-file @@ -21,7 +21,7 @@ root_path = setup_paths() import debian_support -if len(sys.argv) <> 3: +if len(sys.argv) != 3: sys.stderr.write("usage: apt-update-file REMOTE LOCAL\n") sys.exit(1) diff --git a/bin/check-syntax b/bin/check-syntax index adbe36ccd4..a0dde979fe 100755 --- a/bin/check-syntax +++ b/bin/check-syntax @@ -30,7 +30,7 @@ def do_parse(f): if n[0:4] in ('CAN', 'CVE'): n = n[4:] if names.has_key(n): - if names[n] <> r.name: + if names[n] != r.name: sys.stderr.write("error: duplicate CVE entry: %s and %s\n" % (names[n], r.name)) else: @@ -78,7 +78,7 @@ if len(sys.argv) == 2 and sys.argv[1] == "--get": print ' '.join(l) sys.exit(0) -if len(sys.argv) <> 3 or find_source(sys.argv[1]) == None: +if len(sys.argv) != 3 or find_source(sys.argv[1]) == None: l = [src["name"] for src in sources] l.sort() sys.stderr.write("usage: check-syntax {%s} file-name\n" diff --git a/bin/list-queue b/bin/list-queue index 5375493d54..2a5e4dec60 100755 --- a/bin/list-queue +++ b/bin/list-queue @@ -109,7 +109,7 @@ def deletepaths(db, table, paths): def prepareupdate(db, ondisk, indb, table): need_update = [(path, stat) for (path, stat) in ondisk.items() - if path not in indb or stat <> tuple(indb[path][0:2])] + if path not in indb or stat != tuple(indb[path][0:2])] db.executemany("DELETE FROM " + table + " WHERE path = ?", ((path,) for path, _ in need_update)) return need_update diff --git a/bin/show-debsecan b/bin/show-debsecan index c801aabfd3..1d518e7a86 100755 --- a/bin/show-debsecan +++ b/bin/show-debsecan @@ -27,7 +27,7 @@ else: # len(sys.argv) == 3 # The following has been taken from a debsecan test case. data = StringIO(data) - if data.readline() <> "VERSION 1\n": + if data.readline() != "VERSION 1\n": sys.stderr.write("error: server sends data in unknown format\n") sys.exit(1) diff --git a/bin/tracker_service.py b/bin/tracker_service.py index 38e01022ae..b6eb166ca0 100755 --- a/bin/tracker_service.py +++ b/bin/tracker_service.py @@ -350,7 +350,7 @@ data source.""")], return RedirectResult(self.url_cve(url, name), permanent=False) return self.page_not_found(url, name) - if bug.name <> name or redirect: + if bug.name != name or redirect: # Show the normalized bug name in the browser address bar. return RedirectResult(url.scriptRelativeFull(bug.name)) @@ -446,7 +446,7 @@ data source.""")], # for (release, status, reason) in bug.getStatus(cursor): # if status == 'undetermined': # reason = self.make_purple(reason) -# elif status <> 'fixed': +# elif status != 'fixed': # reason = self.make_red(reason) # yield B('Debian/%s' % release), reason @@ -721,7 +721,7 @@ to improve our documentation and procedures, so feedback is welcome.""")])]) else: old_pkg_name = pkg_name title = None - if archive <> 'main': + if archive != 'main': title = "%s (%s)" % (pkg_name, archive) if remote is None: @@ -781,7 +781,7 @@ to improve our documentation and procedures, so feedback is welcome.""")])]) else: old_pkg_name = pkg_name title = None - if archive <> 'main': + if archive != 'main': title = "%s (%s)" % (pkg_name, archive) if remote is None: @@ -841,7 +841,7 @@ to improve our documentation and procedures, so feedback is welcome.""")])]) else: old_pkg_name = pkg_name title = None - if section <> 'main': + if section != 'main': title = "%s (%s)" % (pkg_name, section) if remote is None: @@ -931,7 +931,7 @@ to improve our documentation and procedures, so feedback is welcome.""")])]) title = None migration = A(self.url_testing_status(url, pkg_name), "check") - if archive <> 'main': + if archive != 'main': title = "%s (%s)" % (pkg_name, archive) if remote is None: |