r""" >>> import io >>> read_decimalnl_long(io.BytesIO(b"1234L\n56")) 1234 >>> read_decimalnl_long(io.BytesIO(b"123456789012345678901234L\n6")) 123456789012345678901234
(f)
| 770 | return int(s) |
| 771 | |
| 772 | def read_decimalnl_long(f): |
| 773 | r""" |
| 774 | >>> import io |
| 775 | |
| 776 | >>> read_decimalnl_long(io.BytesIO(b"1234L\n56")) |
| 777 | 1234 |
| 778 | |
| 779 | >>> read_decimalnl_long(io.BytesIO(b"123456789012345678901234L\n6")) |
| 780 | 123456789012345678901234 |
| 781 | """ |
| 782 | |
| 783 | s = read_stringnl(f, decode=False, stripquotes=False) |
| 784 | if s[-1:] == b'L': |
| 785 | s = s[:-1] |
| 786 | return int(s) |
| 787 | |
| 788 | |
| 789 | decimalnl_short = ArgumentDescriptor( |
nothing calls this directly
no test coverage detected
searching dependent graphs…