Replaced python_utils.divide with // operator in oppia
By RepoJournal , from @anurag629's public GitHub activity
Backfilled
Anurag Verma merged a commit to oppia/oppia that removed uses of a custom division utility in favor of Python 3's native // operator.
Verma worked on fixing part of issue #13956 [1], which tracked the migration away from custom utility functions toward Python 3 built-ins. The PR replaced calls to python_utils.divide with the // floor division operator [2]. This simplifies the codebase by removing an abstraction layer that is no longer necessary in Python 3, making division operations more direct and readable.
One email a day. Unsubscribe in one click.
A short briefing every day anurag629 ships something — in about 3 minutes.
One email a day. Unsubscribe in one click. Read a past issue →
References
- [1] Fix part of #13956: Replaced python_utils.divide with "//" python3 operator ↗ oppia/oppia
- [2] Fix part of #13956: Replaced python_utils.divide with "//" python3 operator (#14657) oppia/oppia