*j % S r SSKJr SSKrSSKrSSKrSSKrSSKrSSKJ r J r Sr\( a SSKJ r S\S ' SS KJr SS jrSS jrS r\R, " SS5 \R, " SS5 \R. " S\R0 5 \R2 " 5 \\R, " SS5 S.rSS jrSS. SS jjrg! \ a SS KJr Nf = f)zThis is an alternative to python_reader which tries to emulate the CPython prompt as closely as possible, with the exception of allowing multiline input and multiline history entries. )annotationsN )_get_readermultiline_inputF)Anyz-tuple[type[Exception], ...] | type[Exception]_error)r c [ 5 g! [ ah n [ R R SS5 =n( a SU 3n[ [ U 5 =( d [ U 5 =( d S5 U- s Sn A $ Sn A ff = f)zGReturns the error message if there is a problem initializing the state.TERM z; TERM=z unknown errorN)r r osenvirongetstrrepr)eterms >/opt/alt/python313/lib64/python3.13/_pyrepl/simple_interact.pycheckr 0 sn @ @::>>&"--4-TF#D3q67T!W784??@s A?AA:4A?:A?c d U R S5 n[ U5 nUS: a XS- S:X a U$ U $ )Nz r r )rstriplen)textshortns r _strip_final_indentr ; s9 KKEE A1u!e$K c N [ 5 n U R R S5 g )Nclear_screen)r scheduled_commandsappend)readers r _clear_screenr# F s ]F $$^4r exitr quit copyright)r$ r% r&