From 1b30cb139bce42bcc2175b56115dfee1eb13606d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 22 2018 16:08:47 +0000 Subject: Couple of small flake8 fixes Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/lib/git_auth.py b/pagure/lib/git_auth.py index 5dada6b..3e75f6c 100644 --- a/pagure/lib/git_auth.py +++ b/pagure/lib/git_auth.py @@ -450,7 +450,7 @@ class Gitolite2Auth(GitAuthHelper): `gitolite trigger POST_COMPILE` will fail, thus preventing creation of new repos/forks at the whole pagure instance. - See https://github.com/sitaramc/gitolite/commit/41b7885b77cfe992ad3c96d0b021ece51ce1b3e3 + See https://github.com/sitaramc/gitolite/commit/41b7885b77c (later reverted upstream, but still used in most Pagure deployments) :arg cls: the current class @@ -570,7 +570,8 @@ class Gitolite2Auth(GitAuthHelper): if postconfig: stream.write(postconfig + '\n') - gl_cache_path = os.path.join(os.path.dirname(configfile), '..', 'gl-conf.cache') + gl_cache_path = os.path.join( + os.path.dirname(configfile), '..', 'gl-conf.cache') if os.path.exists(gl_cache_path): cls._remove_from_gitolite_cache(gl_cache_path, project) diff --git a/pagure/pfmarkdown.py b/pagure/pfmarkdown.py index 3d342a5..414175e 100644 --- a/pagure/pfmarkdown.py +++ b/pagure/pfmarkdown.py @@ -208,6 +208,7 @@ class ImplicitIssuePreprocessor(markdown.preprocessors.Preprocessor): continue return new_lines + class ImplicitIssuePattern(markdown.inlinepatterns.Pattern): """ Implicit issue pattern. """