8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90b56ff commit 92994beCopy full SHA for 92994be
pep_sphinx_extensions/pep_processor/transforms/pep_headers.py
@@ -171,12 +171,7 @@ def _process_discourse_url(parts: list[str]) -> tuple[str, str]:
171
f"{'/'.join(parts)} not a link to a Discourse thread or category")
172
173
first_subpart = parts[4]
174
- try:
175
- int(first_subpart)
176
- except ValueError:
177
- has_title = True
178
- else:
179
- has_title = False
+ has_title = not first_subpart.isnumeric()
180
181
if "t" in parts:
182
item_type = "post" if len(parts) > (5 + has_title) else "thread"
0 commit comments