$59 GRAYBYTE WORDPRESS FILE MANAGER $59

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.217.145
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/_vendor/jaraco/text/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/setuptools/_vendor/jaraco/text//show-newlines.py
import autocommand
import inflect

from more_itertools import always_iterable

import jaraco.text


def report_newlines(filename):
    r"""
    Report the newlines in the indicated file.

    >>> tmp_path = getfixture('tmp_path')
    >>> filename = tmp_path / 'out.txt'
    >>> _ = filename.write_text('foo\nbar\n', newline='', encoding='utf-8')
    >>> report_newlines(filename)
    newline is '\n'
    >>> filename = tmp_path / 'out.txt'
    >>> _ = filename.write_text('foo\nbar\r\n', newline='', encoding='utf-8')
    >>> report_newlines(filename)
    newlines are ('\n', '\r\n')
    """
    newlines = jaraco.text.read_newlines(filename)
    count = len(tuple(always_iterable(newlines)))
    engine = inflect.engine()
    print(
        engine.plural_noun("newline", count),
        engine.plural_verb("is", count),
        repr(newlines),
    )


autocommand.autocommand(__name__)(report_newlines)


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
11 Feb 2026 9.30 AM
root / root
0755
__pycache__
--
11 Feb 2026 9.32 AM
root / root
0755
Lorem ipsum.txt
1.304 KB
20 Jan 2026 1.01 PM
root / root
0644
__init__.py
15.869 KB
20 Jan 2026 1.01 PM
root / root
0644
layouts.py
0.628 KB
20 Jan 2026 1.01 PM
root / root
0644
show-newlines.py
0.883 KB
20 Jan 2026 1.01 PM
root / root
0644
strip-prefix.py
0.402 KB
20 Jan 2026 1.01 PM
root / root
0644
to-dvorak.py
0.116 KB
20 Jan 2026 1.01 PM
root / root
0644
to-qwerty.py
0.116 KB
20 Jan 2026 1.01 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF