From 99279313725e966cc17c48e90d10826aa29fc60a Mon Sep 17 00:00:00 2001 From: David Benepe Date: Wed, 27 May 2020 21:57:59 -0500 Subject: [PATCH] Replaced is keyword with equality due to python 3.8 warnings --- tools/python/rom.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/rom.py b/tools/python/rom.py index 985ed716..cea57cac 100644 --- a/tools/python/rom.py +++ b/tools/python/rom.py @@ -31,7 +31,7 @@ class ROM: # Convert mixed/little endian to big endian. # This is kinda slow, and should be avoided if possible. - if self.endianness is 'mixed': + if self.endianness == 'mixed': print('Converting mixed-endian (byte-swapped) to big-endian...') for i in range(0, len(self.bytes), 2): temp = self.bytes[i] @@ -41,7 +41,7 @@ class ROM: self.endianness = 'big' self.fixedRomEndianess = True pass - elif self.endianness is 'little': + elif self.endianness == 'little': print('Converting little-endian to big-endian...') temp = [0, 0, 0, 0] for i in range(0, len(self.bytes), 4):