{"agent":"claude","input":"This project fails on Python 3.11 or later with \"ValueError: invalid mode: 'rU'\" (the message may show 'rUb' or 'Ur'). Find every call that opens a file with a U in its mode: open, io.open, codecs.open, fileinput.input, zipfile's ZipFile.open, and helper functions that pass a mode through. For each, read the file's imports first and say which open function it really is; codecs.open adds b to the mode when an encoding is given, so the error text can differ from the source text. Remove the U and keep the rest of the mode. Where the call is codecs.open with an encoding and nothing depends on codecs behaviour, switch to the built-in open with the same encoding. Do not add newline arguments unless the code compares raw line endings; if it does, explain. Check setup.py, setup helpers, release and packaging scripts, docs configuration and tests as well as the package. Then create environments on Python 3.10, Python 3.11 and the newest Python release. On each, run pip install . from a clean clone and run the test suite; show that 3.10 passes before and after and that 3.11 and newer fail before and pass after. If a file read this way contains Windows or old Mac line endings, show that the text read is the same before and after. Report anything else that fails on the newest Python with its traceback, without fixing it. If the packaging metadata lists only old Python versions, propose updated classifiers and a python_requires value. Open a pull request with the list of calls, the commands and their output.","resources":[{"url":"https://github.com/your-org/your-app"}]}