Linux server.nvwebsoft.co.in 3.10.0-1160.114.2.el7.x86_64 #1 SMP Wed Mar 20 15:54:52 UTC 2024 x86_64
Apache
: 162.240.12.249 | : 3.145.78.12
202 Domain
8.1.31
nbspublicschool
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib64 /
python2.7 /
site-packages /
lxml /
[ HOME SHELL ]
Name
Size
Permission
Action
html
[ DIR ]
drwxr-xr-x
includes
[ DIR ]
drwxr-xr-x
isoschematron
[ DIR ]
drwxr-xr-x
ElementInclude.py
7.46
KB
-rw-r--r--
ElementInclude.pyc
4.33
KB
-rw-r--r--
ElementInclude.pyo
4.33
KB
-rw-r--r--
__init__.py
551
B
-rw-r--r--
__init__.pyc
776
B
-rw-r--r--
__init__.pyo
776
B
-rw-r--r--
_elementpath.py
9.09
KB
-rw-r--r--
_elementpath.pyc
7.47
KB
-rw-r--r--
_elementpath.pyo
7.47
KB
-rw-r--r--
builder.py
7.67
KB
-rw-r--r--
builder.pyc
6.53
KB
-rw-r--r--
builder.pyo
6.48
KB
-rw-r--r--
cssselect.py
3.39
KB
-rw-r--r--
cssselect.pyc
4.04
KB
-rw-r--r--
cssselect.pyo
4.04
KB
-rw-r--r--
doctestcompare.py
17.86
KB
-rw-r--r--
doctestcompare.pyc
16.75
KB
-rw-r--r--
doctestcompare.pyo
16.75
KB
-rw-r--r--
etree.so
1.34
MB
-rwxr-xr-x
lxml.etree.h
9.04
KB
-rw-r--r--
lxml.etree_api.h
16.15
KB
-rw-r--r--
objectify.so
299.11
KB
-rwxr-xr-x
pyclasslookup.py
87
B
-rw-r--r--
pyclasslookup.pyc
213
B
-rw-r--r--
pyclasslookup.pyo
213
B
-rw-r--r--
sax.py
8.29
KB
-rw-r--r--
sax.pyc
8.66
KB
-rw-r--r--
sax.pyo
8.66
KB
-rw-r--r--
usedoctest.py
230
B
-rw-r--r--
usedoctest.pyc
427
B
-rw-r--r--
usedoctest.pyo
427
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : builder.pyo
� ���Pc @ s� d Z d d l j Z y d d l m Z Wn e k rE d � Z n Xy e Wn e k rj d � Z n Xy e Wn e k r� e Z n Xy e Wn e k r� e Z n Xd e f d � � YZ e � Z d S( s9 The ``E`` Element factory for generating XML documents. i����N( t partialc s � � f d � S( Nc s � � | | � S( N( ( t argst kwargs( t funct tag( s2 /usr/lib64/python2.7/site-packages/lxml/builder.pyt <lambda>/ s ( ( R R ( ( R R s2 /usr/lib64/python2.7/site-packages/lxml/builder.pyR . s c C s t | d � S( Nt __call__( t hasattr( t f( ( s2 /usr/lib64/python2.7/site-packages/lxml/builder.pyt callable5 s t ElementMakerc B s5 e Z d Z d d d d d � Z d � Z d � Z RS( sO Element generator factory. Unlike the ordinary Element factory, the E factory allows you to pass in more than just a tag and some optional attributes; you can also pass in text and other elements. The text is added as either text or tail attributes, and elements are inserted at the right spot. Some small examples:: >>> from lxml import etree as ET >>> from lxml.builder import E >>> ET.tostring(E("tag")) '<tag/>' >>> ET.tostring(E("tag", "text")) '<tag>text</tag>' >>> ET.tostring(E("tag", "text", key="value")) '<tag key="value">text</tag>' >>> ET.tostring(E("tag", E("subtag", "text"), "tail")) '<tag><subtag>text</subtag>tail</tag>' For simple tags, the factory also allows you to write ``E.tag(...)`` instead of ``E('tag', ...)``:: >>> ET.tostring(E.tag()) '<tag/>' >>> ET.tostring(E.tag("text")) '<tag>text</tag>' >>> ET.tostring(E.tag(E.subtag("text"), "tail")) '<tag><subtag>text</subtag>tail</tag>' Here's a somewhat larger example; this shows how to generate HTML documents, using a mix of prepared factory functions for inline elements, nested ``E.tag`` calls, and embedded XHTML fragments:: # some common inline elements A = E.a I = E.i B = E.b def CLASS(v): # helper function, 'class' is a reserved word return {'class': v} page = ( E.html( E.head( E.title("This is a sample document") ), E.body( E.h1("Hello!", CLASS("title")), E.p("This is a paragraph with ", B("bold"), " text in it!"), E.p("This is another paragraph, with a ", A("link", href="http://www.python.org"), "."), E.p("Here are some reservered characters: <spam&egg>."), ET.XML("<p>And finally, here is an embedded XHTML fragment.</p>"), ) ) ) print ET.tostring(page) Here's a prettyprinted version of the output from the above script:: <html> <head> <title>This is a sample document</title> </head> <body> <h1 class="title">Hello!</h1> <p>This is a paragraph with <b>bold</b> text in it!</p> <p>This is another paragraph, with <a href="http://www.python.org">link</a>.</p> <p>Here are some reservered characters: <spam&egg>.</p> <p>And finally, here is an embedded XHTML fragment.</p> </body> </html> For namespace support, you can pass a namespace map (``nsmap``) and/or a specific target ``namespace`` to the ElementMaker class:: >>> E = ElementMaker(namespace="http://my.ns/") >>> print(ET.tostring( E.test )) <test xmlns="http://my.ns/"/> >>> E = ElementMaker(namespace="http://my.ns/", nsmap={'p':'http://my.ns/'}) >>> print(ET.tostring( E.test )) <p:test xmlns:p="http://my.ns/"/> c s� | d k r d | d | _ n d | _ | rA t | � | _ n d | _ | d k rb | | _ n t j | _ � r� � j � � n i � d � } t � k r� | � t <n t � k r� | � t <n � f d � } t � k r� | � t <n � | _ d S( Nt {t }c S sP y"