From cd3b8a6a47fd47a736489ff5f2513147170727bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 26 Jun 2017 10:06:27 +0200 Subject: [PATCH 1/2] openqa-maintenance: Make 'emd' static method --- openqa-maintenance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openqa-maintenance.py b/openqa-maintenance.py index 4c9b338c..a9902c31 100755 --- a/openqa-maintenance.py +++ b/openqa-maintenance.py @@ -581,7 +581,8 @@ class OpenQABot(ReviewBot.ReviewBot): self.commentapi.add_comment(request_id=req.reqid, comment=str(comment)) # escape markdown - def emd(self, str): + @staticmethod + def emd(str): return str.replace('_', '\_') def get_step_url(self, testurl, modulename): From b5e05dea93fac168332ae22716174e24cab1c1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 26 Jun 2017 11:43:07 +0200 Subject: [PATCH 2/2] openqa-maintenance: Make 'kgraft_target' static method --- openqa-maintenance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openqa-maintenance.py b/openqa-maintenance.py index a9902c31..10f3e398 100755 --- a/openqa-maintenance.py +++ b/openqa-maintenance.py @@ -137,7 +137,8 @@ class SUSEUpdate(Update): return 'http://download.suse.de/ibs' # we take requests that have a kgraft-patch package as kgraft patch (suprise!) - def kgraft_target(self, req): + @staticmethod + def kgraft_target(req): if req: for a in req.actions: match = re.match(r"kgraft-patch-([^.]+)\.", a.src_package)