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 # Modes
if sys.byteorder == "little": _ENDIAN = "<" if sys.byteorder == "little" else ">"
_ENDIAN = "<"
else:
_ENDIAN = ">"
def _conv_type_shape(im): def _conv_type_shape(im):