MCPcopy Index your code
hub / github.com/RustPython/RustPython / Int2AP

Function Int2AP

Lib/imaplib.py:1798–1807  ·  view source on GitHub ↗

Convert integer to A-P string representation.

(num)

Source from the content-addressed store, hash-verified

1796
1797
1798def Int2AP(num):
1799
1800 """Convert integer to A-P string representation."""
1801
1802 val = b''; AP = b'ABCDEFGHIJKLMNOP'
1803 num = int(abs(num))
1804 while num:
1805 num, mod = divmod(num, 16)
1806 val = AP[mod:mod+1] + val
1807 return val
1808
1809
1810

Callers 1

_connectMethod · 0.85

Calls 2

absFunction · 0.70
divmodFunction · 0.50

Tested by

no test coverage detected