mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(FastAPI): unify tuple return style
Closes #134 Signed-off-by: Steven Guikal <void@fluix.one>
This commit is contained in:
parent
b4092fe77d
commit
fd58e4df04
3 changed files with 34 additions and 34 deletions
|
@ -44,7 +44,7 @@ class FlysprayLinksInlineProcessor(markdown.inlinepatterns.InlineProcessor):
|
|||
el = markdown.util.etree.Element('a')
|
||||
el.set('href', f'https://bugs.archlinux.org/task/{m.group(1)}')
|
||||
el.text = markdown.util.AtomicString(m.group(0))
|
||||
return el, m.start(0), m.end(0)
|
||||
return (el, m.start(0), m.end(0))
|
||||
|
||||
|
||||
class FlysprayLinksExtension(markdown.extensions.Extension):
|
||||
|
@ -71,7 +71,7 @@ class GitCommitsInlineProcessor(markdown.inlinepatterns.InlineProcessor):
|
|||
oid = m.group(1)
|
||||
if oid not in self._repo:
|
||||
# Unkwown OID; preserve the orginal text.
|
||||
return None, None, None
|
||||
return (None, None, None)
|
||||
|
||||
prefixlen = 12
|
||||
while prefixlen < 40:
|
||||
|
@ -82,7 +82,7 @@ class GitCommitsInlineProcessor(markdown.inlinepatterns.InlineProcessor):
|
|||
el = markdown.util.etree.Element('a')
|
||||
el.set('href', commit_uri % (self._head, oid[:prefixlen]))
|
||||
el.text = markdown.util.AtomicString(oid[:prefixlen])
|
||||
return el, m.start(0), m.end(0)
|
||||
return (el, m.start(0), m.end(0))
|
||||
|
||||
|
||||
class GitCommitsExtension(markdown.extensions.Extension):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue