<div id="comment:0"></div> (from #30371) This straightforward cleanup is preparation for necessary changes for Python 3.9 (#30184) CC: @tobiasdiez @jdemeyer Component: **refactoring** Author: **Tobias Diez** Branch/Commit: **[`8f71b29`](https://github.com/sagemath/sagetrac-mirror/commit/8f71b2937fddb70279426bff24d8e66d4445de3c)** Reviewer: **Matthias Koeppe** _Issue created by migration from https://trac.sagemath.org/ticket/30590_