mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-04 16:03:42 +03:00
Use ternary operator
This commit is contained in:
parent
3bbcad1ad2
commit
902e3812a8
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user