summaryrefslogtreecommitdiffstats
path: root/lib/python/debian_support.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
commit7b8b1ffd7374ca4a98dbf6e756bf97861b2182c1 (patch)
treeba6ae076648f5bd9da32e2c06cf003773d76d908 /lib/python/debian_support.py
parent0ffc93107fd5d29385f890d2705022ffdecb2e9f (diff)
Replace <> with != for Python 3.6 compatibility
Diffstat (limited to 'lib/python/debian_support.py')
-rw-r--r--lib/python/debian_support.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/debian_support.py b/lib/python/debian_support.py
index 717705dcd2..e4bc12ee77 100644
--- a/lib/python/debian_support.py
+++ b/lib/python/debian_support.py
@@ -85,7 +85,7 @@ class Version:
version = version.encode('UTF-8')
else:
assert t == types.StringType, `version`
- assert version <> ""
+ assert version != ""
self.__asString = version
self.__forCompare = _version_normalize_regexp.sub("", version)
@@ -394,14 +394,14 @@ def updateFile(remote, local, verbose=None):
+ '.gz')
except IOError:
return downloadFile(remote, local)
- if readLinesSHA1(patch_contents ) <> patch_hashes[patch_name]:
+ if readLinesSHA1(patch_contents ) != patch_hashes[patch_name]:
if verbose:
print "updateFile: patch was garbled: " + repr(patch_name)
return downloadFile(remote, local)
patchLines(lines, patchesFromEdScript(patch_contents))
new_hash = readLinesSHA1(lines)
- if new_hash <> remote_hash:
+ if new_hash != remote_hash:
if verbose:
print "updateFile: patch failed, got %s instead of %s" \
% (new_hash, remote_hash)

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