kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

Remove stale Python 2.7 references from comments and docstrings

Open rtibbles opened this issue 8 months ago • 3 comments

🙂 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

  1. kolibri/utils/options.py:317-320 — Update LazyImportFunction docstring to remove the suggestion that it can be replaced by Python's LazyLoader. The class is the correct design (it lazily resolves a specific callable from a dotted path, which LazyLoader doesn't do). Just remove the Python 2.7 reference.

  2. kolibri/core/content/test/test_zipcontent.py:24-25 — Delete the two comment lines referencing Python 2.7 timestamp backport. The code itself (a hardcoded epoch float) is fine as-is.

Acceptance Criteria

  • [ ] LazyImportFunction docstring in kolibri/utils/options.py no 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.

rtibbles avatar Mar 07 '26 01:03 rtibbles

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 ?

ketan0919 avatar Mar 07 '26 01:03 ketan0919

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.

learning-equality-bot avatar Mar 07 '26 01:03 learning-equality-bot

Hi @ketan0919 - yes, sorry, I had meant to add help wanted too! Will assign you.

rtibbles avatar Mar 07 '26 01:03 rtibbles