Remove stale Python 2.7 references from comments and docstrings
🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:
- Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
- Confirm that you’ve read the guidelines in your comment.
Overview
Remove remaining stale Python 2.7 references from comments and docstrings. These are leftover from when Kolibri supported Python 2.7 — the references are misleading now that Kolibri requires Python 3.6+.
Complexity: Low Target branch: develop
The Change
-
kolibri/utils/options.py:317-320— UpdateLazyImportFunctiondocstring to remove the suggestion that it can be replaced by Python'sLazyLoader. The class is the correct design (it lazily resolves a specific callable from a dotted path, whichLazyLoaderdoesn't do). Just remove the Python 2.7 reference. -
kolibri/core/content/test/test_zipcontent.py:24-25— Delete the two comment lines referencing Python 2.7timestampbackport. The code itself (a hardcoded epoch float) is fine as-is.
Acceptance Criteria
- [ ]
LazyImportFunctiondocstring inkolibri/utils/options.pyno longer references Python 2.7 - [ ] Python 2.7 comment removed from
kolibri/core/content/test/test_zipcontent.py
AI usage
This issue was drafted collaboratively with Claude Code based on a Python 2.7 legacy code audit in docs/plans/tech-debt-python2-legacy.md. The list of affected files was verified by searching the codebase.
Hi @rtibbles, since this one is marked as a good first issue, and Im fairly new to the codebase, may I contribute to this one ?
Hi! 👋
Thanks so much for your interest! This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues. If there are no unassigned 'help wanted' issues available, please wait until new ones are added.
We really appreciate your willingness to help. 😊
Are you preparing for Google Summer of Code? See our GSoC guidelines.
Hi @ketan0919 - yes, sorry, I had meant to add help wanted too! Will assign you.