kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Remove Python 2.7 FileNotFoundError compatibility shims

Open rtibbles opened this issue 1 month ago • 1 comments

Summary

Since Python 2.7 is no longer supported, remove all instances of the FileNotFoundError compatibility shim that was used to map FileNotFoundError to IOError for Python 2.7 compatibility.

Modified files:

  • kolibri/utils/file_transfer.py
  • kolibri/utils/filesystem.py
  • kolibri/utils/server.py
  • kolibri/core/content/utils/content_manifest.py

References

Final bit of Python 2.7 compatibility code, should close #13882

Reviewer guidance

Are there any other instances of this that have been missed? Any other Python 2.7 compatibility things still extant in the codebase?

:robot: This was created by Claude Code. @rtibbles then reviewed the generated output, and did iterative rounds of updates before making it ready for review :robot:

rtibbles avatar Dec 09 '25 19:12 rtibbles