Skip to content

Commit fb80516

Browse files
committed
Remove unused code, handled via author override instead
1 parent 2a08fd7 commit fb80516

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

pep_sphinx_extensions/pep_zero_generator/author.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,6 @@ def parse_author_email(author_email_tuple: tuple[str, str], authors_overrides: d
3333
if name_parts.mononym is not None:
3434
return Author(name_parts.mononym, name_parts.mononym, email)
3535

36-
if name_parts.surname[1] == ".":
37-
# Add an escape to avoid docutils turning `v.` into `22.`.
38-
name_parts = _Name(
39-
mononym=name_parts.mononym,
40-
forename=name_parts.forename,
41-
surname=f"\\{name_parts.surname}",
42-
suffix=name_parts.suffix,
43-
)
44-
4536
if name_parts.suffix:
4637
last_first = f"{name_parts.surname}, {name_parts.forename}, {name_parts.suffix}"
4738
return Author(last_first, name_parts.surname, email)

pep_sphinx_extensions/tests/pep_zero_generator/test_author.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,6 @@
3737
email="eric@example.com",
3838
),
3939
),
40-
(
41-
("Bob v. Smith", "bob@example.com"),
42-
author.Author(
43-
last_first="\\v. Smith, Bob",
44-
nick="\\v. Smith",
45-
email="bob@example.com",
46-
),
47-
),
4840
(
4941
("Mariatta", "mariatta@example.com"),
5042
author.Author(

0 commit comments

Comments
 (0)