Skip to content

Commit 57bb9ab

Browse files
committed
Correct or disable pylint warnings
1 parent c9b5158 commit 57bb9ab

34 files changed

+23
-73
lines changed

queue_job/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
from . import controllers
32
from . import fields
43
from . import models

queue_job/__manifest__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
32

43

queue_job/controllers/main.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) 2015-2016 ACSONE SA/NV (<http://acsone.eu>)
32
# Copyright 2013-2016 Camptocamp SA
43
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

queue_job/exception.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2012-2016 Camptocamp
32
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
43

queue_job/fields.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# copyright 2016 Camptocamp
32
# license agpl-3.0 or later (http://www.gnu.org/licenses/agpl.html)
43

queue_job/job.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright 2013-2016 Camptocamp
32
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
43

queue_job/jobrunner/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) 2015-2016 ACSONE SA/NV (<http://acsone.eu>)
32
# Copyright 2016 Camptocamp SA
43
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)

queue_job/jobrunner/channels.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) 2015-2016 ACSONE SA/NV (<http://acsone.eu>)
32
# Copyright 2015-2016 Camptocamp SA
43
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
@@ -114,6 +113,7 @@ class SafeSet(set):
114113
>>> s.remove(1)
115114
"""
116115
def remove(self, o):
116+
# pylint: disable=missing-return,except-pass
117117
try:
118118
super(SafeSet, self).remove(o)
119119
except KeyError:

queue_job/jobrunner/runner.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
# Copyright (c) 2015-2016 ACSONE SA/NV (<http://acsone.eu>)
32
# Copyright 2015-2016 Camptocamp SA
43
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html)
@@ -231,6 +230,10 @@ def __init__(self, db_name):
231230
self._initialize()
232231

233232
def close(self):
233+
# pylint: disable=except-pass
234+
# if close fail for any reason, it's either because it's already closed
235+
# and we don't care, or for any reason but anyway it will be closed on
236+
# del
234237
try:
235238
self.conn.close()
236239
except:
@@ -277,6 +280,10 @@ def _initialize(self):
277280
cr.execute("LISTEN queue_job")
278281

279282
def select_jobs(self, where, args):
283+
# pylint: disable=sql-injection
284+
# the checker thinks we are injecting values but we are not, we are
285+
# adding the where conditions, values are added later properly with
286+
# parameters
280287
query = ("SELECT channel, uuid, id as seq, date_created, "
281288
"priority, EXTRACT(EPOCH FROM eta), state "
282289
"FROM queue_job WHERE %s" %

queue_job/migrations/10.0.1.0.0/pre-migration.py

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)