Use ternary operator

This commit is contained in:
Andrew Murray 2022-02-15 21:45:35 +11:00
parent 3bbcad1ad2
commit 902e3812a8

View File

@ -203,10 +203,7 @@ ENCODERS = {}
# --------------------------------------------------------------------
# Modes
if sys.byteorder == "little":
_ENDIAN = "<"
else:
_ENDIAN = ">"
_ENDIAN = "<" if sys.byteorder == "little" else ">"
def _conv_type_shape(im):