|
1 | 1 | """
|
2 | 2 | This module provides API for interaction with Tarantool servers cluster.
|
3 | 3 | """
|
4 |
| -# pylint: disable=too-many-lines |
| 4 | +# pylint: disable=too-many-lines,duplicate-code |
5 | 5 |
|
6 | 6 | import abc
|
7 | 7 | import itertools
|
@@ -167,6 +167,7 @@ class StrategyInterface(metaclass=abc.ABCMeta):
|
167 | 167 | """
|
168 | 168 | Defines strategy to choose a pool server based on a request mode.
|
169 | 169 | """
|
| 170 | + # pylint: disable=bad-option-value,super-init-not-called |
170 | 171 |
|
171 | 172 | @classmethod
|
172 | 173 | def __subclasshook__(cls, subclass):
|
@@ -210,6 +211,7 @@ class RoundRobinStrategy(StrategyInterface):
|
210 | 211 | """
|
211 | 212 | Simple round-robin pool servers rotation.
|
212 | 213 | """
|
| 214 | + # pylint: disable=bad-option-value,no-self-use |
213 | 215 |
|
214 | 216 | def __init__(self, pool):
|
215 | 217 | """
|
@@ -372,7 +374,7 @@ class ConnectionPool(ConnectionInterface):
|
372 | 374 | >>> resp
|
373 | 375 | - ['AAAA', 'Alpha']
|
374 | 376 | """
|
375 |
| - # pylint: disable=too-many-public-methods,duplicate-code,bad-option-value,no-self-use,super-init-not-called,bad-option-value |
| 377 | + # pylint: disable=too-many-public-methods,duplicate-code,bad-option-value,no-self-use |
376 | 378 |
|
377 | 379 | def __init__(self,
|
378 | 380 | addrs,
|
@@ -652,7 +654,7 @@ def _request_process_loop(self, key, unit, last_refresh):
|
652 | 654 | method = getattr(Connection, task.method_name)
|
653 | 655 | try:
|
654 | 656 | resp = method(unit.conn, *task.args, **task.kwargs)
|
655 |
| - except Exception as exc: # pylint: disable=broad-exception-caught,broad-except |
| 657 | + except Exception as exc: # pylint: disable=bad-option-value,broad-exception-caught,broad-except |
656 | 658 | unit.output_queue.put(exc)
|
657 | 659 | else:
|
658 | 660 | unit.output_queue.put(resp)
|
|
0 commit comments