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
commit7d08ad9158507856c31222fbbd12b2f8ba238c4d (patch)
tree0af73b104c364b6c1d1bd58a77ad19b168823a7f /lib/python/debian_support.py
parente76615770ebaa46808ff548412d3b508919f6497 (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