%PDF- %PDF-
Direktori : /proc/self/root/opt/plesk/python/2.7/lib64/python2.7/test/ |
Current File : //proc/self/root/opt/plesk/python/2.7/lib64/python2.7/test/test___all__.pyo |
� 5}�ac @ s� d d l m Z d d l Z d d l m Z d d l Z d d l Z y e j d d e �Z Wn e j k rs n Xd e f d � � YZ d e f d � � YZ d e j f d � � YZ d � Z e d k r� e � n d S( i����( t print_functionN( t test_supportt bsddbt deprecatedt NoAllc B s e Z RS( ( t __name__t __module__( ( ( s: /opt/plesk/python/2.7/lib64/python2.7/test/test___all__.pyR s t FailedImportc B s e Z RS( ( R R ( ( ( s: /opt/plesk/python/2.7/lib64/python2.7/test/test___all__.pyR s t AllTestc B s# e Z d � Z d � Z d � Z RS( c B s i } e j d e f d e ��+ y d | | UWn e | � � n XWd QXe e j | d � ss e | � � n i } y d | | UWn5 e k r� } | j d j | | j j | � � n Xd | k r� | d =n e | � } e e j | j � } | j | | � d S( Ns .* (module|package)t quiets import %st __all__s from %s import *s __all__ failure in {}: {}: {}t __builtins__( t supportt check_warningst DeprecationWarningt TrueR t hasattrt syst modulesR t Exceptiont failt formatt __class__R t setR t assertEqual( t selft modnamet namest et keyst all( ( s: /opt/plesk/python/2.7/lib64/python2.7/test/test___all__.pyt check_all s( c c s� x� t t j | � � D]� } t j j | | � } t j j | � r� t j j | d � } t j j | � r | | | f Vx6 | j | | | d � D] \ } } | | f Vq� Wq q n | j d � s | d k r� q n | | | d f Vq Wd S( Ns __init__.pyt .s .pyi����( t sortedt ost listdirt patht joint isdirt existst walk_modulest endswith( R t basedirt modpatht fnR$ t pkg_initt pt m( ( s: /opt/plesk/python/2.7/lib64/python2.7/test/test___all__.pyR( 2 s 'c C s� t d g � } t j j d � s0 d d l } n d d l } | j | j � } z( y d d l } Wn t k rt n XWd | j | j | � Xg } g } t j j t j j t � � } x| j | d � D]� \ } } | } t } x3 | r| | k rt } Pn | j d � d } q� W| r$q� n t j r:t | � n yJ t | d � �5 } d | j � k rpt | � � n | j | � Wd QXWq� t k r�| j | � q� t k r�| j | � q� Xq� Wt j r�t d | � t d | � n d S( Nt __future__t javai����t R i t rbR s8 Following modules have no __all__ and have been ignored:s( Following modules failed to be imported:( R R t platformt startswitht _sockett localet getlocalet LC_CTYPEt rlcompletert ImportErrort setlocaleR"