We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Checkmk Conference #6 goes digital. Get your tickets here!

Werk #10124: The output formats 'python' and 'python3' are now explicit about string types.

ComponentLivestatus
TitleThe output formats "python" and "python3" are now explicit about string types.
Date2020-02-26 14:46:53
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.7.0i1
LevelProminent Change
ClassNew Feature
CompatibilityIncompatible - Manual interaction might be required

To ease the Python 2 => Python 3 transition, Livestatus is now very explicit about string types when using the "python" and "python3" output formats: All binary strings have a "b" prefix now, and all unicode strings have a "u" prefix. This makes both formats effectively identical.

If you don't use either format in your scripts or use a Python version >= 2.6, you don't have to change anything. If you still use Python <= 2.5 (which doesn't undestand the "b" prefix), please upgrade. Note that these Python versions have an EOL in 2011 or before, so this shouldn't be a problem in practice.