PHP 8.5.2
Preview: string.py Size: 505 B
//lib/python3/dist-packages/pyasn1/compat/string.py

#
# This file is part of pyasn1 software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pyasn1/license.html
#
from sys import version_info

if version_info[:2] <= (2, 5):

    def partition(string, sep):
        try:
            a, c = string.split(sep, 1)

        except ValueError:
            a, b, c = string, '', ''

        else:
            b = sep

        return a, b, c

else:

    def partition(string, sep):
        return string.partition(sep)

Directory Contents

Dirs: 1 × Files: 7

Name Size Perms Modified Actions
- drwxr-xr-x 2026-01-23 08:58:00
Edit Download
698 B lrw-r--r-- 2019-10-17 05:00:19
Edit Download
379 B lrw-r--r-- 2019-10-17 05:00:19
Edit Download
482 B lrw-r--r-- 2019-10-17 05:00:19
Edit Download
2.92 KB lrw-r--r-- 2019-10-17 05:00:19
Edit Download
1.33 KB lrw-r--r-- 2019-10-17 05:00:19
Edit Download
505 B lrw-r--r-- 2019-10-17 05:00:19
Edit Download
59 B lrw-r--r-- 2019-10-17 05:00:19
Edit Download

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