remaining ord() in python3 branch in gpib and serial
There are some remaining ord() calls that should be looked at carefully as they are likely not to work in python3.
-
./bliss/comm/serial.py: SL_NEWLINE: ("eol", lambda o, v: ord(v[-1])),
-
./bliss/comm/gpib/_gpib.py: "Prologix::init() eos set to 0 (%s)" % [ord(c) for c in self._eos]
-
./bliss/comm/gpib/_gpib.py: ncmd[4:] = [ord(x) for x in cmd]
further there are
-
./bliss/controllers/opiom.py: lrc = (nb_bytes + nb_block + sum([ord(x) for x in binmsg])) & 0xff
-
./bliss/controllers/nano_bpm.py: [ord(c) for c in command_sent], [ord(c) for c in reply[0:2]]
(this one is related to #514 (closed) )
Edited by Linus Pithan