Remove an incorrect comment about the Python struct module.

"<I" has always been defined as little endian 32-bit unsigned int.
https://docs.python.org/3/library/struct.html#format-characters

PiperOrigin-RevId: 485963034
pull/10902/head
Gregory P. Smith 3 years ago committed by Copybara-Service
parent 2326aef1a4
commit 9fe9adf4d8
  1. 3
      conformance/conformance_python.py

@ -178,9 +178,6 @@ def do_test_io():
elif len(length_bytes) != 4:
raise IOError("I/O error")
# "I" is "unsigned int", so this depends on running on a platform with
# 32-bit "unsigned int" type. The Python struct module unfortunately
# has no format specifier for uint32_t.
length = struct.unpack("<I", length_bytes)[0]
serialized_request = sys.stdin.read(length)
if len(serialized_request) != length:

Loading…
Cancel
Save