PHP 8.2.30
Preview: utils.py Size: 421 B
//lib/python3.6/site-packages/setuptools/_vendor/packaging/utils.py

# This file is dual licensed under the terms of the Apache License, Version
# 2.0, and the BSD License. See the LICENSE file in the root of this repository
# for complete details.
from __future__ import absolute_import, division, print_function

import re


_canonicalize_regex = re.compile(r"[-_.]+")


def canonicalize_name(name):
    # This is taken from PEP 503.
    return _canonicalize_regex.sub("-", name).lower()

Directory Contents

Dirs: 1 × Files: 9

Name Size Perms Modified Actions
- drwxr-xr-x 2025-07-17 07:18:27
Edit Download
8.05 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
4.24 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
27.37 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
421 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download
11.29 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
860 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download
1.38 KB lrw-r--r-- 2025-07-15 09:13:40
Edit Download
720 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download
513 B lrw-r--r-- 2025-07-15 09:13:40
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).