SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib > > python3.11 > site-packages > numpy > distutils


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib//python3.11/site-packages/numpy/distutils

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
checks Directory - -
command Directory - -
fcompiler Directory - -
mingw Directory - -
tests Directory - -
__config__.py File 5143 bytes April 17 2025 13:10:58.
__init__.py File 2074 bytes April 17 2025 13:10:58.
__init__.pyi File 119 bytes April 17 2025 13:10:58.
_shell_utils.py File 2613 bytes April 17 2025 13:10:58.
armccompiler.py File 962 bytes April 17 2025 13:10:58.
ccompiler.py File 28618 bytes April 17 2025 13:10:58.
ccompiler_opt.py File 100335 bytes April 17 2025 13:10:58.
conv_template.py File 9536 bytes April 17 2025 13:10:58.
core.py File 8173 bytes April 17 2025 13:10:58.
cpuinfo.py File 22639 bytes April 17 2025 13:10:58.
exec_command.py File 10283 bytes April 17 2025 13:10:58.
extension.py File 3568 bytes April 17 2025 13:10:58.
from_template.py File 7913 bytes April 17 2025 13:10:58.
fujitsuccompiler.py File 834 bytes April 17 2025 13:10:58.
intelccompiler.py File 4234 bytes April 17 2025 13:10:58.
lib2def.py File 3630 bytes April 17 2025 13:10:58.
line_endings.py File 2032 bytes April 17 2025 13:10:58.
log.py File 2879 bytes April 17 2025 13:10:58.
mingw32ccompiler.py File 22067 bytes April 17 2025 13:10:58.
misc_util.py File 89359 bytes April 17 2025 13:10:58.
msvc9compiler.py File 2192 bytes April 17 2025 13:10:58.
msvccompiler.py File 2647 bytes April 17 2025 13:10:58.
npy_pkg_config.py File 12972 bytes April 17 2025 13:10:58.
numpy_distribution.py File 634 bytes April 17 2025 13:10:58.
pathccompiler.py File 713 bytes April 17 2025 13:10:58.
setup.py File 634 bytes April 17 2025 13:10:58.
system_info.py File 113184 bytes April 17 2025 13:10:58.
unixccompiler.py File 5426 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib//python3.11/site-packages/numpy/distutils/line_endings.py

""" Functions for converting from DOS to UNIX line endings

"""
import os
import re
import sys


def dos2unix(file):
    "Replace CRLF with LF in argument files.  Print names of changed files."
    if os.path.isdir(file):
        print(file, "Directory!")
        return

    with open(file, "rb") as fp:
        data = fp.read()
    if '\0' in data:
        print(file, "Binary!")
        return

    newdata = re.sub("\r\n", "\n", data)
    if newdata != data:
        print('dos2unix:', file)
        with open(file, "wb") as f:
            f.write(newdata)
        return file
    else:
        print(file, 'ok')

def dos2unix_one_dir(modified_files, dir_name, file_names):
    for file in file_names:
        full_path = os.path.join(dir_name, file)
        file = dos2unix(full_path)
        if file is not None:
            modified_files.append(file)

def dos2unix_dir(dir_name):
    modified_files = []
    os.path.walk(dir_name, dos2unix_one_dir, modified_files)
    return modified_files
#----------------------------------

def unix2dos(file):
    "Replace LF with CRLF in argument files.  Print names of changed files."
    if os.path.isdir(file):
        print(file, "Directory!")
        return

    with open(file, "rb") as fp:
        data = fp.read()
    if '\0' in data:
        print(file, "Binary!")
        return
    newdata = re.sub("\r\n", "\n", data)
    newdata = re.sub("\n", "\r\n", newdata)
    if newdata != data:
        print('unix2dos:', file)
        with open(file, "wb") as f:
            f.write(newdata)
        return file
    else:
        print(file, 'ok')

def unix2dos_one_dir(modified_files, dir_name, file_names):
    for file in file_names:
        full_path = os.path.join(dir_name, file)
        unix2dos(full_path)
        if file is not None:
            modified_files.append(file)

def unix2dos_dir(dir_name):
    modified_files = []
    os.path.walk(dir_name, unix2dos_one_dir, modified_files)
    return modified_files

if __name__ == "__main__":
    dos2unix_dir(sys.argv[1])

SILENT KILLER Tool