Replace 'raise StopIteration' with a blank 'return', since changes in python-3.7 change StopIeration to a RuntimeError.

This commit is contained in:
Mike Auty
2018-09-28 12:44:19 +01:00
parent 3e176c8a50
commit de3bfad135
9 changed files with 15 additions and 14 deletions
+2 -2
View File
@@ -155,9 +155,9 @@ class Intel(interfaces.layers.TranslationLayerInterface):
except exceptions.InvalidAddressException:
if not ignore_errors:
raise
raise StopIteration
return
yield (offset, mapped_offset, length, layer_name)
raise StopIteration
return
while length > 0:
try:
chunk_offset, page_size, layer_name = self._translate(offset)