__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

��g�E���SSKrSSKrSSKrSSKrSSKJr SSKJrJrJr "SS\	5r
"SS\	5r"SS	\	5rg)
�N)�
BeautifulSoup)�EntitySubstitution�EncodingDetector�
UnicodeDammitc��\rSrSrSrSr\RRS/SQ5S5r	Sr
SrS	rS
r
SrSrS
rg)�TestUnicodeDammit�z"Standalone tests of UnicodeDammit.c�B�Sn[U5nURU:Xdeg)NuI'm already Unicode! ☃)r�unicode_markup)�self�markup�dammits   �7/usr/lib/python3/dist-packages/bs4/tests/test_dammit.py�test_unicode_input�$TestUnicodeDammit.test_unicode_inputs%��3���v�&���$�$��.�.�.�z smart_quotes_to,expect_converted))Nu‘’“”)�xmlz &#x2018;&#x2019;&#x201C;&#x201D;)�htmlz&lsquo;&rsquo;&ldquo;&rdquo;)�asciiz''""c�b�Sn[US/US9RnUSRU5:Xdeg)zZVerify the functionality of the smart_quotes_to argument
to the UnicodeDammit constructor.s<foo>����</foo>�windows-1252)�known_definite_encodings�smart_quotes_toz
<foo>{}</foo>N)rr�format)rr�expect_convertedr
�	converteds     r�test_smart_quotes_to�&TestUnicodeDammit.test_smart_quotes_tosE��0��!��&4�%5�+�
��.�		�
�O�2�2�3C�D�D�D�Drc��Sn[U5nURR5S:XdeURS:Xdeg)NsSacré bleu! ☃�utf-8uSacré bleu! ☃�r�original_encoding�lowerr)r�utf8rs   r�test_detect_utf8�"TestUnicodeDammit.test_detect_utf8*sC��1���t�$���'�'�-�-�/�7�:�:�:��$�$�(D�D�D�Drc��Sn[US/5nURR5S:XdeURS:Xdeg)N����
iso-8859-8uםולשr!)r�hebrewrs   r�test_convert_hebrew�%TestUnicodeDammit.test_convert_hebrew0sG��$���v��~�6���'�'�-�-�/�<�?�?�?��$�$�(B�B�B�Brc��Sn[U5nURR5S:XdeURR	S5U:Xdeg)Nsケータイ Watchr )rr"r#r�encode)r�utf_8rs   r�/test_dont_see_smart_quotes_where_there_are_none�ATestUnicodeDammit.test_dont_see_smart_quotes_where_there_are_none6sM��I���u�%���'�'�-�-�/�7�:�:�:��$�$�+�+�G�4��=�=�=rc��SRS5n[US/5nURR5S:Xdeg)N�
Räksmörgåsr r)�r.rr"r#�r�	utf8_datars   r� test_ignore_inappropriate_codecs�2TestUnicodeDammit.test_ignore_inappropriate_codecs<s=��#�*�*�7�3�	��y�<�.�9���'�'�-�-�/�7�:�:�:rc��SRS5nSH/n[X/5nURR5S:XaM/e g)Nr3r )z.utf8z...z
utF---16.!r4)rr6�bad_encodingrs    r�test_ignore_invalid_codecs�,TestUnicodeDammit.test_ignore_invalid_codecsAsE��#�*�*�7�3�	�:�L�"�9�n�=�F��+�+�1�1�3�w�>�>�>�;rc��SRS5n[US/S9nURR5S:Xde[USS/S9nURbeg)Nr3r )�exclude_encodingsrr4r5s   r�test_exclude_encodings�(TestUnicodeDammit.test_exclude_encodingsGsd��#�*�*�7�3�	��y�W�I�F���'�'�-�-�/�>�A�A�A��y�W�n�<U�V���'�'�/�/�/r�N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�pytest�mark�parametrizerr%r+r0r7r;r?�__static_attributes__rArrrrsW��,�/�
�[�[���*�	
��	E��	E�E�C�>�;�
?�0rrc�J�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rSr
g)
�TestEncodingDetector�Uc�T�[S5n[UR5nSU;deg)Ns'<?xml version="1.0" encoding="UTF-�" ?>uutf-�)r�list�	encodings)r�detectedrPs   r�Ptest_encoding_detector_replaces_junk_in_encoding_name_with_replacement_character�eTestEncodingDetector.test_encoding_detector_replaces_junk_in_encoding_name_with_replacement_characterVs-��$�$Q�R����+�+�,�	�.�)�;�;�;rc�N�SHn[USS9nSUR:XaMe g)N)s&<html><meta charset="euc-jp" /></html>s&<html><meta charset='euc-jp' /></html>s$<html><meta charset=euc-jp /></html>s#<html><meta charset=euc-jp/></html>T��is_htmlzeuc-jp)rr"�r�datars   r� test_detect_html5_style_meta_tag�5TestEncodingDetector.test_detect_html5_style_meta_tag]s0��
�D�#�4��6�F��v�7�7�7�7�7�
rc�@�Sn[RRn[R"[R
5 SnU[Rl[
U5nSURLdeSUR;de[US5nUR(de[R"[R5 U[Rlg![R"[R5 U[Rlf=f)NsT<?xml version="1.0" encoding="UTF-8"?>
<html><b>بتر</b>
<i>��ѐ����</i></html>c��g�NrA)�strs r�noop�ETestEncodingDetector.test_last_ditch_entity_replacement.<locals>.noop~s��rTu�zhtml.parser)�bs4r�_chardet_dammit�logging�disable�WARNINGr�contains_replacement_charactersrr�NOTSET)r�doc�chardetr_r�soups      r�"test_last_ditch_entity_replacement�7TestEncodingDetector.test_last_ditch_entity_replacementgs��� 2���*�*�,�,��������(�	1�
�*.�C�J�J�&�"�3�'�F��6�A�A�A�A�A��v�4�4�4�4�4� ��m�4�D��7�7�7�7��O�O�G�N�N�+�)0�C�J�J�&��
�O�O�G�N�N�+�)0�C�J�J�&�s
�A%C"�";Dc�f�Sn[U5nSUR:XdeSUR:Xdeg)N���<a>��</a>u<a>áé</a>�utf-16le)rrr"rWs   r�test_byte_order_mark_removed�1TestEncodingDetector.test_byte_order_mark_removed�s9��M���t�$���� 5� 5�5�5�5��V�5�5�5�5�5rc��Sn[U5n[US/S9nSUR:Xde[US/S9nSUR:XdeS/URVs/sHoUSPM	 sn:XdeSn[US/S	/S
9nS	UR:XdeSS	/URVs/sHoUSPM	 sn:Xdegs snfs snf)Nrnzutf-16)rr )�user_encodingsrorr(r))rrs)rr"�tried_encodings)rrXr�before�after�xr*s       r�)test_known_definite_versus_user_encodings�>TestEncodingDetector.test_known_definite_versus_user_encodings�s���
N���t�$���t�x�j�I���6�3�3�3�3�3�
�d�G�9�=���U�4�4�4�4�4��|�f�.D�.D�E�.D��!��.D�E�E�E�E�%����g�Y��~�
���v�7�7�7�7�7���&��9O�9O�*P�9O�A�Q�4�9O�*P�P�P�P�� F��+Qs�B7� B<c�x�Sn[R"SS9n[US/S/S/S9nSSS5 WunURn[	U[
5(deUR[:XdeSWR:Xde/SQURVs/sHofS	PM	 sn:Xdeg!,(df   N�=fs snf)
Nr(T)�record�	shift-jisr r))r�override_encodingsrs)r|r r)r)
�warnings�catch_warningsr�message�
isinstance�DeprecationWarning�filename�__file__r"rt)rr*�wr�warningr�rws       r�"test_deprecated_override_encodings�7TestEncodingDetector.test_deprecated_override_encodings�s���%��
�
$�
$�D�
1�Q�"��*5��$+�9� ,�~�	�F�2��	���/�/���'�#5�6�6�6�6����8�+�+�+��v�7�7�7�7�7�4�!�1�1�2�1�a�q�T�1�2�
�	
�
�2�
1�� 
3s�B&�B7�&
B4c�:�SRS5nSRS5nX-U-n[R"[5 UR	S5 SSS5 [
R"U5nSUR	S5:Xdeg!,(df   N<=f)Nu	☃☃☃r$u“Hi, I like Windows!”�windows_1252u+☃☃☃“Hi, I like Windows!”☃☃☃)r.rG�raises�UnicodeDecodeError�decoder�	detwingle)rr$r�rh�fixeds     r�test_detwingle�#TestEncodingDetector.test_detwingle�s���!�)�)�&�1��
.�
�&��
 �	��!�D�(���]�]�-�
.��J�J�v��/��'�'��,��<����V�@T�T�T�T�/�
.�s�B�
Bc��SHInURS5nURS5(de[R"U5nX2:XaMIe g)N)uœuₓu𐐓r$��)r.�endswithrr�)r�tricky_unicode_char�input�outputs    r�+test_detwingle_ignores_multibyte_characters�@TestEncodingDetector.test_detwingle_ignores_multibyte_characters�sP��
$
��
(�.�.�v�6�E��>�>�'�*�*�*�*�"�,�,�U�3�F��?�"�?�$
rc��SnURS5nSnURS5n[RnU"USS9beSU"USS9:XdeSU"USS9:XdeSU"U5:XdeSU"U5:XdeS	S
-nU"Xb-5beU"Xd-5beU"Xb-SSS9S:XdeU"USS9S:XdeU"S	U-SS9S:XdeU"S
U-SS9beg)Nz0<html><head><meta charset="utf-8"></head></html>rz,<?xml version="1.0" encoding="ISO-8859-1" ?>FrUr Tz
iso-8859-1� i�)rV�search_entire_document)r��a)r.r�find_declared_encoding)r�html_unicode�
html_bytes�xml_unicode�	xml_bytes�m�spacers       r�test_find_declared_encoding�0TestEncodingDetector.test_find_declared_encoding�s6��J��!�(�(��1�
�D���&�&�w�/�	��3�3����u�-�5�5�5��!�L�$�7�7�7�7��!�J��5�5�5�5��q��~�-�-�-��q��|�+�+�+�������$�%�-�-�-���#�$�,�,�,�

�f�!�4��M�QX�X�	
�X���4�8�L�H�H�H���	�!�$�?�<�O�O�O���	�!�$�?�G�G�GrrAN)rBrCrDrErRrYrkrprxr�r�r�r�rJrArrrLrLUs4��<�8�#1�J6�Q�@
�.U�0
#�'HrrLc��\rSrSrSrSr\RRSSS/5S5r	Sr
S	rS
rSr
SrS
rSrSrSrSrSrSr\RRS/SQ5S5r\RRS/SQ5S5r\RRSS/5S5rSrg)�TestEntitySubstitutioniz1Standalone tests of the EntitySubstitution class.c��[Ulgr])r�sub�rs r�setup_method�#TestEntitySubstitution.setup_methods	��%��rzoriginal,substituted)ufoo∀☃õbarufoo&forall;☃&otilde;bar)u‘’foo“”z&lsquo;&rsquo;foo&ldquo;&rdquo;c�F�URRU5U:Xdegr]�r��substitute_html)r�original�substituteds   r�test_substitute_html�+TestEntitySubstitution.test_substitute_html!s!���x�x�'�'��1�[�@�@�@rc�p�SH0upSnX2-nX1-nURRU5U:XaM0e g)N)	)z&models;u⊧)z&Nfr;u𝔑)z&ngeqq;u≧̸)z&not;�¬)z&Not;u⫬z||)�fjr�)z&gt;�>)z&lt;�<z3 %s 4r�)r�entity�u�template�raw�
with_entitiess      r�test_html5_entity�(TestEntitySubstitution.test_html5_entity/sC��
�I�F�( �H��,�C�$�-�M��8�8�+�+�C�0�M�A�A�A�/
rc��SnSnURRU5U:XdeSnSnURRU5U:Xdeg)Nufjords ⊔ penguinszfjords &sqcup; penguinsufjords ⊔︀ penguinszfjords &sqcups; penguinsr�)rrXr
s   r�)test_html5_entity_with_variation_selector�@TestEntitySubstitution.test_html5_entity_with_variation_selectorIsR��(��*���x�x�'�'��-��7�7�7�-��+���x�x�'�'��-��7�7�7rc�L�SnURRUS5U:Xdeg)N�Welcome to "my bar"F�r��substitute_xml�r�ss  r�Itest_xml_converstion_includes_no_quotes_if_make_quoted_attribute_is_false�`TestEntitySubstitution.test_xml_converstion_includes_no_quotes_if_make_quoted_attribute_is_falseUs&��!���x�x�&�&�q�%�0�A�5�5�5rc��URRSS5S:XdeURRSS5S:Xdeg)N�WelcomeTz	"Welcome"z	Bob's Barz"Bob's Bar"r�r�s r�6test_xml_attribute_quoting_normally_uses_double_quotes�MTestEntitySubstitution.test_xml_attribute_quoting_normally_uses_double_quotesYs@���x�x�&�&�y�$�7�;�F�F�F��x�x�&�&�{�D�9�^�K�K�Krc�L�SnURRUS5S:Xdeg)Nr�Tz'Welcome to "my bar"'r�r�s  r�Otest_xml_attribute_quoting_uses_single_quotes_when_value_contains_double_quotes�fTestEntitySubstitution.test_xml_attribute_quoting_uses_single_quotes_when_value_contains_double_quotes]s)��
"���x�x�&�&�q�$�/�3L�L�L�Lrc�L�SnURRUS5S:Xdeg)N�Welcome to "Bob's Bar"Tz""Welcome to &quot;Bob's Bar&quot;"r�r�s  r�btest_xml_attribute_quoting_escapes_single_quotes_when_value_contains_both_single_and_double_quotes�yTestEntitySubstitution.test_xml_attribute_quoting_escapes_single_quotes_when_value_contains_both_single_and_double_quotescs)��
&���x�x�&�&�q�$�/�3X�X�X�Xrc�J�SnURRU5U:Xdeg)Nr�r�)r�quoteds  r�<test_xml_quotes_arent_escaped_when_value_is_not_being_quoted�STestEntitySubstitution.test_xml_quotes_arent_escaped_when_value_is_not_being_quotedis$��*���x�x�&�&�v�.�&�8�8�8rc�F�URRS5S:Xdeg)Nzfoo<bar>zfoo&lt;bar&gt;r�r�s r�'test_xml_quoting_handles_angle_brackets�>TestEntitySubstitution.test_xml_quoting_handles_angle_bracketsms ���x�x�&�&�z�2�6F�F�F�Frc�F�URRS5S:Xdeg)NzAT&TzAT&amp;Tr�r�s r�#test_xml_quoting_handles_ampersands�:TestEntitySubstitution.test_xml_quoting_handles_ampersandsps���x�x�&�&�v�.�*�<�<�<rc�F�URRS5S:Xdeg)N�&Aacute;T&Tz&amp;Aacute;T&amp;Tr�r�s r�Etest_xml_quoting_including_ampersands_when_they_are_part_of_an_entity�\TestEntitySubstitution.test_xml_quoting_including_ampersands_when_they_are_part_of_an_entityss ���x�x�&�&�}�5�9N�N�N�Nrc�F�URRS5S:Xdeg)Nr�z&Aacute;T&amp;T)r��"substitute_xml_containing_entitiesr�s r�Dtest_xml_quoting_ignoring_ampersands_when_they_are_part_of_an_entity�[TestEntitySubstitution.test_xml_quoting_ignoring_ampersands_when_they_are_part_of_an_entityvs&���H�H�7�7�
�F� �
!�	
�
!rc�J�SnURRU5U:Xdeg)z:There's no need to do this except inside attribute values.zBob's "bar"Nr�)r�texts  r� test_quotes_not_html_substituted�7TestEntitySubstitution.test_quotes_not_html_substituted|s$�����x�x�'�'��-��5�5�5rzmarkup, old))z	foo & barz
foo &amp; bar)zfoo&zfoo&amp;)z
foo&&& barzfoo&amp;&amp;&amp; bar)zx=1&y=2zx=1&amp;y=2)z&123z&amp;123)z&abcz&amp;abc)z
foo &0 barzfoo &amp;0 bar)zfoo &lolwat barzfoo &amp;lolwat barc��URRU5U:XdeURRU5U:Xdegr]�r�r��substitute_html5_raw)rr
�olds   r�'test_unambiguous_ampersands_not_escaped�>TestEntitySubstitution.test_unambiguous_ampersands_not_escaped�s>���x�x�'�'��/�3�6�6�6��x�x�,�,�V�4��>�>�>rzmarkup,html,html5,html5raw))�&divide;�&amp;divide;r�r�)z
&nonesuch;�&amp;nonesuch;r�r�)z&#247;�
&amp;#247;r�r�)z&#xa1;�
&amp;#xa1;r�r�c���URRU5U:XdeURRU5U:XdeURRU5U:Xdegr])r�r��substitute_html5r�)rr
r�html5�html5raws     r�'test_when_entity_ampersands_are_escaped�>TestEntitySubstitution.test_when_entity_ampersands_are_escaped�s[��,�x�x�'�'��/�4�7�7�7��x�x�(�(��0�E�9�9�9��x�x�,�,�V�4��@�@�@rz
markup,expect)z&nosuchentity;z&amp;nosuchentity;c��URRU5U:XdeURRU5U:Xdegr]r�)rr
�expects   r�!test_ambiguous_ampersands_escaped�8TestEntitySubstitution.test_ambiguous_ampersands_escaped�s>���x�x�'�'��/�6�9�9�9��x�x�,�,�V�4��>�>�>r)r�N)rBrCrDrErFr�rGrHrIr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrJrArrr�r�s	��;�&��[�[����
S�
C�
	
�
�A�
�A�B�4
8�6�L�M�Y�9�G�=�O�
�6�
�[�[����		
��?��?��[�[���$�	
��A��A�"�[�[����B�C��?��?rr�)
rGrcr~rar�
bs4.dammitrrr�objectrrLr�rArr�<module>rsL��
���
����D0��D0�NCH�6�CH�LV?�V�V?r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 66.1 KB 0644
test_builder.cpython-313.pyc File 1.59 KB 0644
test_builder_registry.cpython-313.pyc File 7.62 KB 0644
test_css.cpython-313.pyc File 28.35 KB 0644
test_dammit.cpython-313.pyc File 19.46 KB 0644
test_element.cpython-313.pyc File 6.04 KB 0644
test_filter.cpython-313.pyc File 30.98 KB 0644
test_formatter.cpython-313.pyc File 7.59 KB 0644
test_fuzz.cpython-313.pyc File 6.91 KB 0644
test_html5lib.cpython-313.pyc File 11.63 KB 0644
test_htmlparser.cpython-313.pyc File 7.14 KB 0644
test_lxml.cpython-313.pyc File 8.05 KB 0644
test_navigablestring.cpython-313.pyc File 7.7 KB 0644
test_pageelement.cpython-313.pyc File 22.48 KB 0644
test_soup.cpython-313.pyc File 31.39 KB 0644
test_tag.cpython-313.pyc File 13.9 KB 0644
test_tree.cpython-313.pyc File 91.45 KB 0644
Filemanager