Skip to content

Commit 2a90b28

Browse files
committed
Fix some local parameter names
1 parent 82f495f commit 2a90b28

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

sphinx/builders/html/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ def convert_html_js_files(app: Sphinx, config: Config) -> None:
11401140
config.html_js_files = html_js_files # type: ignore
11411141

11421142

1143-
def setup_js_tag_helper(app: Sphinx, pagename: str, templatexname: str,
1143+
def setup_js_tag_helper(app: Sphinx, pagename: str, templatename: str,
11441144
context: Dict, doctree: Node) -> None:
11451145
"""Set up js_tag() template helper.
11461146

sphinx/util/i18n.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ def find_catalog(docname: str, compaction: bool) -> str:
128128
return ret
129129

130130

131-
def docname_to_domain(docname: str, compation: Union[bool, str]) -> str:
131+
def docname_to_domain(docname: str, compaction: Union[bool, str]) -> str:
132132
"""Convert docname to domain for catalogs."""
133-
if isinstance(compation, str):
134-
return compation
135-
if compation:
133+
if isinstance(compaction, str):
134+
return compaction
135+
if compaction:
136136
return docname.split(SEP, 1)[0]
137137
else:
138138
return docname

0 commit comments

Comments
 (0)