Skip to content

Commit df38162

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 616cb2c commit df38162

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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:
3029
install_requires =
3130
Sphinx>=1.8
3231
lxml>=4.5.2
33-
python_requires = >=3.8
32+
python_requires = >=3.10
3433
include_package_data = True
3534
package_dir =
3635
= src

src/sphinxcontrib/email/utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)