ok
Direktori : /opt/alt/python35/lib64/python3.5/__pycache__/ |
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/timeit.cpython-35.opt-2.pyc |
���]h0 � @ s� d d l Z d d l Z d d l Z d d l Z d d d d g Z d Z d Z d Z e j Z e Z d Z d d � Z Gd d � d � Z d d e e d d d � Z d d e e e d d d � Z d d d d d �Z e d k r� e j e � � d S)� N�Timer�timeit�repeat� default_timerz<timeit-src>i@B � z� def inner(_it, _timer{init}): {setup} _t0 = _timer() for _i in _it: {stmt} _t1 = _timer() return _t1 - _t0 c C s | j d d d | � S)N� � )�replace)�src�indent� r �+/opt/alt/python35/lib64/python3.5/timeit.py�reindentP s r c @ sX e Z d Z d d e d d d � Z d d d � Z e d d � Z e e d d � Z d S)r �passNc C sj | | _ i } | d k r$ t � n | } d } t | t � rk t | t d � | d } t | d � } n; t | � r� | | d <| d 7} d } d } n t d � � t | t � r� t | | t d � t | d � } n5 t | � r| | d <| d 7} d } n t d � � t j d | d | d | � } | | _ t | t d � } t | | | � | d | _ d S)N� �execr � �_setupz, _setup=_setupz_setup()z&setup is neither a string nor callable� Z_stmtz , _stmt=_stmtz_stmt()z%stmt is neither a string nor callable�stmt�setup�init�inner)�timer�_globals� isinstance�str�compile�dummy_src_namer �callable� ValueError�template�formatr r r )�selfr r r �globalsZlocal_nsZ global_nsr Z stmtprefixr �coder r r �__init__f s6 zTimer.__init__c C si d d l } d d l } | j d k rU t | j � d | j j d � t f | j t <| j d | � d S)Nr r �file)� linecache� tracebackr �len�splitr �cache� print_exc)r# r'