One function
IpForwardingUtils in GoogleCloudPlatform/compute-image-packages
The author described this change as “Fix IP forwarding utils Python 3 compatibility. (#331)”. It counts as a record because the check below fails on the code as it stood at 49bd63c53 and passes on 0420c3514, with nothing else changed between the two runs.
Fix saved2016-08-26
Sharing licenceApache-2.0 · LICENSE
Change size+1 −1
What the code was meant to do, written into the code itself as a docstring
System IP address configuration utilities.
The change
| 54 | 54 | message = 'Non-zero exit status running %s. %s.' | |
| 55 | 55 | self.logger.warning(message, command, stderr.strip()) | |
| 56 | 56 | else: | |
| 57 | - | return stdout | |
| 57 | + | return stdout.decode('utf-8', 'replace') | |
| 58 | 58 | return '' | |
| 59 | 59 | ||
| 60 | 60 | def ParseForwardedIps(self, forwarded_ips): |
The check that tells the two apart
fail→pass·google_compute_engine/ip_forwarding/tests/ip_forwarding_utils_test.py::IpForwardingUtilsTest::testRunIpRoute
Check file google_compute_engine/ip_forwarding/tests/ip_forwarding_utils_test.py, taken without changes from the fix and copied onto the older code, so the exact same check runs against both versions.
Origin and history
The code before it49bd63c53f00caec8128acd9976e8aed85c76fe5
Broken version dated2016-08-25
Modulegoogle_compute_engine.ip_forwarding.ip_forwarding_utils
Units changedIpForwardingUtils
Fingerprint0d205f1e1678e4ba
Checked2026-08-18 by goldset/0.1
Every field above is generated by our program. None of it is written by hand.