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 /lib/python/sectracker | |
parent | e76615770ebaa46808ff548412d3b508919f6497 (diff) |
Replace <> with != for Python 3.6 compatibility
Diffstat (limited to 'lib/python/sectracker')
-rw-r--r-- | lib/python/sectracker/analyzers.py | 2 | ||||
-rw-r--r-- | lib/python/sectracker/parsers.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/sectracker/analyzers.py b/lib/python/sectracker/analyzers.py index ec664faaa8..856196e5db 100644 --- a/lib/python/sectracker/analyzers.py +++ b/lib/python/sectracker/analyzers.py @@ -85,7 +85,7 @@ def copysources(bugdb, diag): if not _re_source.match(copy_source): copy_source = None for ann in bug.annotations: - if ann.type <> "xref": + if ann.type != "xref": continue for target in ann.bugs: if target not in bugdb: diff --git a/lib/python/sectracker/parsers.py b/lib/python/sectracker/parsers.py index 52af64e2ac..8678469964 100644 --- a/lib/python/sectracker/parsers.py +++ b/lib/python/sectracker/parsers.py @@ -249,12 +249,12 @@ def cvelist(path, f): name, desc = match.groups() if desc: if desc[0] == '(': - if desc[-1] <> ')': + if desc[-1] != ')': diag.error("error", "missing ')'") else: desc = desc[1:-1] elif desc[0] == '[': - if desc[-1] <> ']': + if desc[-1] != ']': diag.error("missing ']'") else: desc = desc[1:-1] |