summaryrefslogtreecommitdiffstats
path: root/aurweb/scripts/rendercomment.py
diff options
context:
space:
mode:
authorFilipe Laíns <lains@archlinux.org>2020-06-02 00:35:25 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2021-02-20 17:24:30 +0100
commit8d1be7ea8a8d7c270f692a6c375ef2614c5ac601 (patch)
tree2b343525badee68b0850ddc51295a6efca66f9a2 /aurweb/scripts/rendercomment.py
parent48b58b1c2f74df0906231d2affd9f2b352a8e330 (diff)
downloadaur-8d1be7ea8a8d7c270f692a6c375ef2614c5ac601.tar.gz
aur-8d1be7ea8a8d7c270f692a6c375ef2614c5ac601.tar.xz
Refactor code to comply with flake8 and isort
Signed-off-by: Filipe Laíns <lains@archlinux.org> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'aurweb/scripts/rendercomment.py')
-rwxr-xr-xaurweb/scripts/rendercomment.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/aurweb/scripts/rendercomment.py b/aurweb/scripts/rendercomment.py
index 76865d27..422dd33b 100755
--- a/aurweb/scripts/rendercomment.py
+++ b/aurweb/scripts/rendercomment.py
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-import re
-import pygit2
import sys
+
import bleach
import markdown
+import pygit2
import aurweb.config
import aurweb.db
@@ -47,7 +47,7 @@ class FlysprayLinksInlineProcessor(markdown.inlinepatterns.InlineProcessor):
class FlysprayLinksExtension(markdown.extensions.Extension):
def extendMarkdown(self, md, md_globals):
- processor = FlysprayLinksInlineProcessor(r'\bFS#(\d+)\b',md)
+ processor = FlysprayLinksInlineProcessor(r'\bFS#(\d+)\b', md)
md.inlinePatterns.register(processor, 'flyspray-links', 118)