mirror of
https://github.com/mii443/qemu.git
synced 2025-12-04 03:28:31 +00:00
python: support pylint 2.16
Pylint 2.16 adds a few new checks that cause the optional check-tox CI job to fail. 1. The superfluous-parens check seems to be a bit more aggressive, 2. broad-exception-raised is new; it discourages "raise Exception". Fix these minor issues and turn the lights green. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Beraldo Leal <bleal@redhat.com> Message-id: 20230210003147.1309376-2-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
This commit is contained in:
@@ -207,7 +207,7 @@ class AsyncProtocol(Generic[T]):
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
# Maximum allowable size of read buffer
|
||||
_limit = (64 * 1024)
|
||||
_limit = 64 * 1024
|
||||
|
||||
# -------------------------
|
||||
# Section: Public interface
|
||||
|
||||
Reference in New Issue
Block a user