PRODUCT=3/627/1/111 NAME="QEMU QEMU USB Keyboard" PHYS="usb-0000:00:01.2-2/input0" UNIQ="42" PROP=0 EV=120013 KEY=1000000000007 ff9f207ac14057ff febeffdfffefffff fffffffffffffffe MSC=10 LED=1f MODALIAS=input:b0003v0627p0001e0111-e0,1,4,11,14,k71,72,73,74,75,77,79,7A,7B,7C,7D,7E,7F,80,81,82,83,84,85,86,87,88,89,8A,8C,8E,96,98,9E,9F,A1,A3,A4,A5,A6,AD,B0,B1,B2,B3,B4,B7,B8,B9,BA,BB,BC,BD,BE,BF,C0,C1,C2,F0,ram4,l0,1,2,3,4,sfw $ˆl–äY>””†Ù”â�nãa¸&Tţ „hÁÀ¿?÷a ´iT`ã@sdZddlZddlZddlZddlZgd¢Zd4dd„Zdd„Zd5dd „Zd6d d „Z d7d d „Z dZ dZ d8dd„Z d9dd„Zdd„Zdd„Zdd„Zd:dd„Zd;dd„Zdd#d$„Zd?d%d&„Zd'd(„ZGd)d*„d*ƒZd+d,„Zd-d.„Zd/ZGd0d1„d1eƒZGd2d3„d3ƒZdS)@z@Extract, format and print information about Python stack traces.éN)Ú extract_stackÚ extract_tbÚformat_exceptionÚformat_exception_onlyÚ format_listÚ format_stackÚ format_tbÚ print_excÚ format_excÚprint_exceptionÚ print_lastÚ print_stackÚprint_tbÚ clear_framesÚ FrameSummaryÚ StackSummaryÚTracebackExceptionÚ walk_stackÚwalk_tbcCs4|durtj}t |¡ ¡D]}t||dd�qdS)zyPrint the list of tuples as returned by extract_tb() or extract_stack() as a formatted stack trace to the given file.NÚ©ÚfileÚend)ÚsysÚstderrrÚ from_listÚformatÚprint)Úextracted_listrÚitem©r ú!/usr/lib64/python3.9/traceback.pyÚ print_listsr"cCst |¡ ¡S)a×Format a list of tuples or FrameSummary objects for printing. Given a list of tuples or FrameSummary objects as returned by extract_tb() or extract_stack(), return a list of strings ready for printing. Each string in the resulting list corresponds to the item with the same index in the argument list. Each string ends in a newline; the strings may contain internal newlines as well, for those items whose source text line is not None. )rrr)rr r r!rs rcCstt||d�|d�dS)aPrint up to 'limit' stack trace entries from the traceback 'tb'. If 'limit' is omitted or None, all entries are printed. If 'file' is omitted or None, the output goes to sys.stderr; otherwise 'file' should be an open file or file-like object with a write() method. ©Úlimit©rN)r"r)Útbr$rr r r!r-srcCst||d� ¡S)z5A shorthand for 'format_list(extract_tb(tb, limit))'.r#)rr©r&r$r r r!r7srcCstjt|ƒ|d�S)a# Return a StackSummary object representing a list of pre-processed entries from traceback. This is useful for alternate formatting of stack traces. If 'limit' is omitted or None, all entries are extracted. A pre-processed stack trace entry is a FrameSummary object containing attributes filename, lineno, name, and line representing the information that is usually printed for a stack trace. The line is a string with leading and trailing whitespace stripped; if the source is not available it is None. r#)rÚextractrr'r r r!r;s rzG The above exception was the direct cause of the following exception: zF During handling of the above exception, another exception occurred: TcCsB|durtj}tt|ƒ|||d�j|d�D]}t||dd�q*dS)aùPrint exception up to 'limit' stack trace entries from 'tb' to 'file'. This differs from print_tb() in the following ways: (1) if traceback is not None, it prints a header "Traceback (most recent call last):"; (2) it prints the exception type and value after the stack trace; (3) if type is SyntaxError and value has the appropriate format, it prints the line where the syntax error occurred with a caret on the next line indicating the approximate po