PHP 8.2.30
Preview: optionfile.py Size: 651 B
//proc/thread-self/root/proc/self/root/opt/cloudlinux/venv/lib/python3.11/site-packages/pymysql/optionfile.py

import configparser


class Parser(configparser.RawConfigParser):
    def __init__(self, **kwargs):
        kwargs["allow_no_value"] = True
        configparser.RawConfigParser.__init__(self, **kwargs)

    def __remove_quotes(self, value):
        quotes = ["'", '"']
        for quote in quotes:
            if len(value) >= 2 and value[0] == value[-1] == quote:
                return value[1:-1]
        return value

    def optionxform(self, key):
        return key.lower().replace("_", "-")

    def get(self, section, option):
        value = configparser.RawConfigParser.get(self, section, option)
        return self.__remove_quotes(value)

Directory Contents

Dirs: 2 × Files: 10

Name Size Perms Modified Actions
constants DIR
- drwxr-xr-x 2026-02-06 08:01:08
Edit Download
- drwxr-xr-x 2026-02-06 08:01:11
Edit Download
10.00 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
52.33 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
9.37 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
16.15 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
3.68 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
651 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
11.58 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
360 B lrw-r--r-- 2026-01-20 13:01:47
Edit Download
7.24 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download
4.16 KB lrw-r--r-- 2026-01-20 13:01:47
Edit Download

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