SILENT KILLERPanel

Current Path: > > opt > cloudlinux > venv > lib64 > python3.11 > site-packages > svgwrite


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/cloudlinux/venv/lib64/python3.11/site-packages/svgwrite

NameTypeSizeLast ModifiedActions
__pycache__ Directory - -
data Directory - -
extensions Directory - -
__init__.py File 2506 bytes April 17 2025 13:10:58.
animate.py File 6663 bytes April 17 2025 13:10:58.
base.py File 8624 bytes April 17 2025 13:10:58.
container.py File 10741 bytes April 17 2025 13:10:58.
drawing.py File 5291 bytes April 17 2025 13:10:58.
elementfactory.py File 2297 bytes April 17 2025 13:10:58.
etree.py File 1361 bytes April 17 2025 13:10:58.
filters.py File 8002 bytes April 17 2025 13:10:58.
gradients.py File 4702 bytes April 17 2025 13:10:58.
image.py File 2493 bytes April 17 2025 13:10:58.
masking.py File 1856 bytes April 17 2025 13:10:58.
mixins.py File 10749 bytes April 17 2025 13:10:58.
params.py File 1903 bytes April 17 2025 13:10:58.
path.py File 2848 bytes April 17 2025 13:10:58.
pattern.py File 1973 bytes April 17 2025 13:10:58.
shapes.py File 5310 bytes April 17 2025 13:10:58.
solidcolor.py File 1734 bytes April 17 2025 13:10:58.
text.py File 8138 bytes April 17 2025 13:10:58.
utils.py File 7421 bytes April 17 2025 13:10:58.
validator2.py File 6205 bytes April 17 2025 13:10:58.
version.py File 1119 bytes April 17 2025 13:10:58.

Reading File: //opt/cloudlinux/venv/lib64/python3.11/site-packages/svgwrite/etree.py

#!/usr/bin/env python
#coding:utf-8
# Author:  mozman
# Purpose: a hack to generate XML containing CDATA by ElementTree
# Created: 26.05.2012
# Copyright (C) 2012, Manfred Moitzi
# License: MIT License

# usage:
#
# from svgwrite.etree import etree, CDATA
#
# element = etree.Element('myTag')
# element.append(CDATA("< and >"))
#
# assert etree.tostring(element) == "<myTag><![CDATA[< and >]]></myTag>"


import sys
PY3 = sys.version_info[0] > 2

import xml.etree.ElementTree as etree

CDATA_TPL = "<![CDATA[%s]]>"
CDATA_TAG = CDATA_TPL


def CDATA(text):
    element = etree.Element(CDATA_TAG)
    element.text = text
    return element

original_serialize_xml = etree._serialize_xml

if PY3:
    def _serialize_xml_with_CDATA_support(write, elem, qnames, namespaces, **kwargs):
        if elem.tag == CDATA_TAG:
            write(CDATA_TPL % elem.text)
        else:
            original_serialize_xml(write, elem, qnames, namespaces, **kwargs)
else:
    def _serialize_xml_with_CDATA_support(write, elem, encoding, qnames, namespaces):
        if elem.tag == CDATA_TAG:
            write(CDATA_TPL % elem.text.encode(encoding))
        else:
            original_serialize_xml(write, elem, encoding, qnames, namespaces)

# ugly, ugly, ugly patching
etree._serialize_xml = _serialize_xml_with_CDATA_support

SILENT KILLER Tool