403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.52
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/css_parser/scripts/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/css_parser/scripts/__pycache__/csscombine.cpython-312.pyc
�

��3eo���dZddlmZmZmZmZdgZdZdZddl	m
Z
ddlZddlZd
d�Z
ed	k(reje
��yy)aaCombine all sheets referred to a given CSS *proxy* sheet
into a single new sheet.

- no ``url()`` values are adjusted so currently when using relative references
  for e.g. images it is best to have all sheets in a single folder
- in @import rules only relative paths do work for now but should be used
  anyway
- messages are send to stderr
- output to stdout.

Example::

    csscombine sheets\csscombine-proxy.css -m -t ascii -s utf-8
        1>combined.css 2>log.txt

results in log.txt::

    COMBINING sheets/csscombine-proxy.css
    USING SOURCE ENCODING: css
    * PROCESSING @import sheets\csscombine-1.css
    * PROCESSING @import sheets\csscombine-2.css
    INFO    Nested @imports are not combined: @import "1.css";
    SETTING TARGET ENCODING: ascii

and combined.css::

    @charset "ascii";@import"1.css";@namespaces2"uri";s2|sheet-1{top:1px}s2|sheet-2{top:2px}proxy{top:3px}

or without option -m::

    @charset "ascii";
    @import "1.css";
    @namespace s2 "uri";
    @namespace other "other";
    /* proxy sheet were imported sheets should be combined */
    /* non-ascii chars: \F6 \E4 \FC  */
    /* @import "csscombine-1.css"; */
    /* combined sheet 1 */
    s2|sheet-1 {
        top: 1px
        }
    /* @import url(csscombine-2.css); */
    /* combined sheet 2 */
    s2|sheet-2 {
        top: 2px
        }
    proxy {
        top: 3px
        }

�)�unicode_literals�division�absolute_import�print_function�
csscombine�restructuredtextz$Id$)rNc�B�d}tj|��}|jddddd��|jd	d
ddd��|jd
ddddd��|jdddddd��|j�\}}|jrAtt
|j|j|j|j���y|r:tt
|d|j|j|j���y|jd�y)Nzusage: %prog [options] [path])�usagez-uz--url�store�urlz+URL to parse (path is ignored if URL given))�action�dest�helpz-sz--sourceencoding�sourceencodingzpencoding of input, defaulting to "css".If given overwrites other encoding information like @charset declarationsz-tz--targetencoding�targetencodingz)encoding of output, defaulting to "UTF-8"zutf-8)r
rr�defaultz-mz--minify�
store_true�minifyFz;saves minified version of combined files, defaults to False)r
rrr)rrrrr)�pathrrrzno path or URL (-u) given)�optparse�OptionParser�
add_option�
parse_argsr�printrrrr�error)�argsr
�parser�optionsrs     �?/usr/lib/python3/dist-packages/css_parser/scripts/csscombine.py�mainr @s3��+�E�
�
"�
"��
/�F�
���d�G�G� �H��J����� ��
�T��U�
���d�.�w�+�F�PW��Y����d�J�|�(�#�X��Z��%�%�'�M�G�T��{�{�
�j�W�[�[�(/�(>�(>�(/�(>�(>� '���0�	1�
�
�j�d�1�g�(/�(>�(>�(/�(>�(>� '���0�	1�
	���0�1��__main__)N)�__doc__�
__future__rrrr�__all__�
__docformat__�__version__�css_parser.scriptrr�sysr �__name__�exit�r!r�<module>r-sS��2�fS�R��.��"�
���(��
�2�B�z���C�H�H�T�V��r!

Youez - 2016 - github.com/yon3zu
LinuXploit