summaryrefslogtreecommitdiffstats
path: root/lib/python/bugs.py
diff options
context:
space:
mode:
authorBrian May <brian@linuxpenguins.xyz>2018-06-18 17:11:31 +1000
committerBrian May <brian@linuxpenguins.xyz>2018-07-15 09:03:43 +1000
commit7d08ad9158507856c31222fbbd12b2f8ba238c4d (patch)
tree0af73b104c364b6c1d1bd58a77ad19b168823a7f /lib/python/bugs.py
parente76615770ebaa46808ff548412d3b508919f6497 (diff)
Replace <> with != for Python 3.6 compatibility
Diffstat (limited to 'lib/python/bugs.py')
-rw-r--r--lib/python/bugs.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/bugs.py b/lib/python/bugs.py
index 84b0d4caed..93bef74604 100644
--- a/lib/python/bugs.py
+++ b/lib/python/bugs.py
@@ -165,8 +165,8 @@ class PackageNoteParsed(PackageNote):
class PackageNoteNoDSA:
def __init__(self, package, release, comment, reason=None):
- assert type(package) == types.StringType and package <> ''
- assert type(release) == types.StringType and release <> ''
+ assert type(package) == types.StringType and package != ''
+ assert type(release) == types.StringType and release != ''
assert type(comment) == types.StringType
if not reason:
reason = ''
@@ -764,12 +764,12 @@ class CVEFile(FileBase):
(cve, desc) = match.groups()
if desc:
if desc[0] == '(':
- if desc[-1] <> ')':
+ if desc[-1] != ')':
self.raiseSyntaxError("missing closing parenthesis")
else:
desc = desc[1:-1]
elif desc[0] == '[':
- if desc[-1] <> ']':
+ if desc[-1] != ']':
self.raiseSyntaxError("missing closing bracket")
else:
desc = desc[1:-1]

© 2014-2024 Faster IT GmbH | imprint | privacy policy