Server IP : 2a02:4780:3:1493:0:3736:a38e:7 / Your IP : 216.73.216.45 Web Server : LiteSpeed System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/../lib/../lib/python3.6/site-packages/slip/../pymysql/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
from ._compat import PY2 if PY2: import ConfigParser as configparser else: 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 get(self, section, option): value = configparser.RawConfigParser.get(self, section, option) return self.__remove_quotes(value)