diff rsib.py @ 56:91b476ebc0f2

Run through 2to3
author Daniel O'Connor <doconnor@gsoft.com.au>
date Tue, 08 Dec 2020 14:00:45 +1030
parents 226ea06bc050
children 00800345fbae
line wrap: on
line diff
--- a/rsib.py	Tue Dec 08 13:59:05 2020 +1030
+++ b/rsib.py	Tue Dec 08 14:00:45 2020 +1030
@@ -142,7 +142,7 @@
             raise exceptions.IOError("Unexpected Msg ID 0x%02x" % (ord(rx[4])))
         
         if ord(rx[5]) != 0:
-            print "Mystery byte %d != 0" % (ord(rx[5]))
+            print("Mystery byte %d != 0" % (ord(rx[5])))
         # Fetch the actual reply now we know the length
         reply = ''
         while len(reply) < rxlen:
@@ -190,4 +190,4 @@
         elif rx == '\x00\x00\x00\x00\xa0\x64\x07':
             return True
         else:
-            raise exceptions.IOError("Unknown SRQ byte sequence - " + str(map(ord, rx)))
+            raise exceptions.IOError("Unknown SRQ byte sequence - " + str(list(map(ord, rx))))