| Server IP : 118.27.122.248 / Your IP : 216.73.216.15 Web Server : Apache System : Linux web0264.sh.tyo1 4.18.0-553.79.1.lve.el7h.x86_64 #1 SMP Wed Oct 15 16:34:46 UTC 2025 x86_64 User : c9415830 ( 11735) PHP Version : 8.4.17 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib64/python3.6/test/__pycache__/ |
Upload File : |
3
�
�^8$ � @ s� d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlm Z d dl
Z
ej� Zee j
jej�gZdddddgdgdgd gZdddddd
gdgdgdgZdddd
dddgddgg dgZdddddddd
ddg ddgg dgZdd
dddddddddddgg g dgZdddddddddddd dd!g
g g d"gZdddgd#gg d$gZdddgg g d%gZddgg g d&gZd'd(� Zd)d*� ZG d+d,� d,ej�Zed-k�r�ej� dS ).� N)�supportza.module�a�sys�b�czb.somethingz�a/__init__.py
a/module.py
from b import something
from c import something
b/__init__.py
from sys import *
Z
__future__a a/__init__.py
a/module.py
from b import something
from c import something
b/__init__.py
from __future__ import absolute_import
from sys import *
za.bza.cZmymoduleZblahblaha mymodule.py
a/__init__.py
import blahblah
from a import b
import c
a/module.py
import sys
from a import b as x
from a.c import sillyname
a/b.py
a/c.py
from a.module import x
import mymodule as sillyname
from sys import version_info
zb.xzb.yzb.z�gc�zaj mymodule.py
a/__init__.py
a/module.py
from __future__ import absolute_import
import sys # sys
import blahblah # fails
import gc # gc
import b.x # b.x
from b import y # b.y
from b.z import * # b.z.*
a/gc.py
a/sys.py
import mymodule
a/b/__init__.py
a/b/x.py
a/b/y.py
a/b/z.py
b/__init__.py
import z
b/unused.py
b/x.py
b/y.py
b/z.py
za.b.yza.b.zza.b.cz
a.b.c.moduleCza.b.c.dza.b.c.eza.b.xa� mymodule.py
a/__init__.py
from .b import y, z # a.b.y, a.b.z
a/module.py
from __future__ import absolute_import # __future__
import gc # gc
a/gc.py
a/sys.py
a/b/__init__.py
from ..b import x # a.b.x
#from a.b.c import moduleC
from .c import moduleC # a.b.moduleC
a/b/x.py
a/b/y.py
a/b/z.py
a/b/g.py
a/b/c/__init__.py
from ..c import e # a.b.c.e
a/b/c/moduleC.py
from ..c import d # a.b.c.d
a/b/c/d.py
a/b/c/e.py
a/b/c/x.py
za.sysza.b.c.fz a.anothera� mymodule.py
a/__init__.py
from . import sys # a.sys
a/another.py
a/module.py
from .b import y, z # a.b.y, a.b.z
a/gc.py
a/sys.py
a/b/__init__.py
from .c import moduleC # a.b.c.moduleC
from .c import d # a.b.c.d
a/b/x.py
a/b/y.py
a/b/z.py
a/b/c/__init__.py
from . import e # a.b.c.e
a/b/c/moduleC.py
#
from . import f # a.b.c.f
from .. import x # a.b.x
from ... import another # a.another
a/b/c/d.py
a/b/c/e.py
a/b/c/f.py
za.barz�a/__init__.py
def foo(): pass
a/module.py
from . import foo
from . import bar
zza/__init__.py
def foo(): pass
a/module.py
from . import *
� c C sV t jj| �}yt j|� W n0 tk
rJ } z|jtjkr:� W Y d d }~X nX t| d�S )N�w)�os�path�dirname�makedirs�OSError�errnoZEEXIST�open)r r
�e� r �6/opt/alt/python36/lib64/python3.6/test_modulefinder.py� open_file� s r c C sx d }z`xZ| j � D ]N}|jd�s(|jd�r<|j|j� d � q|rH|j� ttjjt |j� ��}qW W d |rr|j� X d S )N� � �
)
�
splitlines�
startswith�write�strip�closer r r �join�TEST_DIR)�sourceZofi�liner r r �create_package� s r"