Branch: refs/heads/2.1.0
Home:
https://github.com/tribe29/checkmk
Commit: f9cc080493f08a7de1ed702830f22d6403ff9b86
https://github.com/tribe29/checkmk/commit/f9cc080493f08a7de1ed702830f22d640…
Author: Andreas Umbreit <andreas.umbreit(a)tribe29.com>
Date: 2023-02-16 (Thu, 16 Feb 2023)
Changed paths:
M agents/plugins/Makefile
M tests/Makefile
Log Message:
-----------
Python2 agent plugins: Fix wrong conversion of next()
When applying 3to2 with "next"-fixup included, it will convert
any occurence of next(##) to ##.next()
This doesn't work out for a line like
foo = next(bar, None)
which would convert to
foo = bar, None.next()
This actually happened in mk_logwatch.py
We don't need the "next"-fixup, as the next()-builtin available
since Python 2.6, which is the lowest supported version for python
agent plugins.
Change-Id: I20679a77384d02df5a887de6ff1a77e0da8c7cdc