{"agent":"claude","input":"This project fails on Python 3.9 or later with \"AttributeError: module 'base64' has no attribute 'encodestring'\". Find every use of base64.encodestring and base64.decodestring in the source, tests and scripts. For each one, work out what the result is used for (an HTTP Authorization header, a file, a comparison) and what types go in and come out, and check whether the call was already broken on Python 3 because it passes str where bytes are required. Reproduce the failure with a script or test that reaches the line without real network access; stub the HTTP call if you need to. Do not just rename the function. For a header or any single-line value use base64.b64encode, encode str input to bytes explicitly, and decode the result to str before formatting it into text. Use encodebytes only where the output really should be wrapped in 76-character lines. Add tests that assert the exact value produced, including an input long enough that the old function would have inserted a newline, and one with a non-ASCII character. Run the tests on the oldest Python version the project claims to support and on a current one, and include the output of both. Say whether the fixed code path could ever have worked before, and how you know. Open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}