AlkantarClanX12
Current Path : /lib64/python3.6/__pycache__/ |
Current File : //lib64/python3.6/__pycache__/traceback.cpython-36.pyc |
3 \�[ � @ s: d Z ddlZddlZddlZddlZddddddd d ddd ddddddddgZd3dd�Zdd� Zd4dd�Zd5dd �Z d6dd�Z dZdZd7dd�Z d8d d�Zd!d� Zd"d#� Zd$d%� Zd9d&d �Zd:d'd�Zd;d(d �Zd<d)d�Zd=d*d�Zd>d+d�Zd,d� ZG d-d� d�Zd.d� Zd/d� Zd0ZG d1d� de�ZG d2d� d�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_tbc C s8 |dkrt j}x$tj| �j� D ]}t||dd� qW dS )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.6/traceback.py� print_list s r! c C s t j| �j� 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. )r r r )r r r r r s c C s t t| |d�|d� dS )a Print 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)r N)r! r )�tbr"