PHP 8.2.31
Preview: optionfile.py Size: 651 B
/opt/imunify360/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-05-27 11:04:31
Edit Download
- drwxr-xr-x 2026-05-27 11:04:31
Edit Download
10.00 KB lrw-r--r-- 2026-04-14 09:45:17
Edit Download
52.43 KB lrw-r--r-- 2026-04-14 09:45:17
Edit Download
9.30 KB lrw-r--r-- 2026-04-14 09:45:17
Edit Download
16.15 KB lrw-r--r-- 2026-04-14 09:45:17
Edit Download
4.08 KB lrw-r--r-- 2026-04-14 09:45:17
Edit Download
651 B lrw-r--r-- 2026-04-14 09:45:17
Edit Download
11.54 KB lrw-r--r-- 2026-04-14 09:45:17
Edit Download
360 B lrw-r--r-- 2026-04-14 09:45:17
Edit Download
7.24 KB lrw-r--r-- 2026-04-14 09:45:17
Edit Download
4.17 KB lrw-r--r-- 2026-04-14 09:45:17
Edit Download

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