File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ classifiers =
1414 Environment :: Web Environment
1515 Framework :: Sphinx :: Extension
1616 Intended Audience :: Developers
17- License :: OSI Approved :: BSD License
1817 Operating System :: OS Independent
1918 Programming Language :: Python :: 3
2019 Programming Language :: Python :: 3 :: Only
@@ -30,7 +29,7 @@ packages = find_namespace:
3029install_requires =
3130 Sphinx>=1.8
3231 lxml>=4.5.2
33- python_requires = >=3.8
32+ python_requires = >=3.10
3433include_package_data = True
3534package_dir =
3635 = src
Original file line number Diff line number Diff line change @@ -41,8 +41,7 @@ def js_obfuscated_text(self, text: str) -> str:
4141 """
4242 xml_node = ET .Element ("script" )
4343 xml_node .attrib ["type" ] = "text/javascript"
44- js_script = textwrap .dedent (
45- """\
44+ js_script = textwrap .dedent ("""\
4645 document.write(
4746 "{text}".replace(/[a-zA-Z]/g,
4847 function(c){{
@@ -51,8 +50,7 @@ def js_obfuscated_text(self, text: str) -> str:
5150 );
5251 }}
5352 )
54- );"""
55- )
53+ );""" )
5654 xml_node .text = js_script .format (text = self .rot_13_encrypt (text ))
5755
5856 return self .xml_to_unesc_string (xml_node )
You can’t perform that action at this time.
0 commit comments