We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49ed782 commit 1d6cccaCopy full SHA for 1d6ccca
1 file changed
vm/Lib/_bootstrap_external.py
@@ -26,6 +26,16 @@
26
+ _CASE_INSENSITIVE_PLATFORMS_STR_KEY)
27
28
29
+def _w_long(x):
30
+ """Convert a 32-bit integer to little-endian."""
31
+ return (int(x) & 0xFFFFFFFF).to_bytes(4, 'little')
32
+
33
34
+def _r_long(int_bytes):
35
+ """Convert 4 bytes in little-endian to an integer."""
36
+ return int.from_bytes(int_bytes, 'little')
37
38
39
def _make_relax_case():
40
if sys.platform.startswith(_CASE_INSENSITIVE_PLATFORMS):
41
if sys.platform.startswith(_CASE_INSENSITIVE_PLATFORMS_STR_KEY):
0 commit comments