Now that CI has dropped Buster/php7.4 images (T335766): Quibble can drop support for Python 3.7 (shipped by Buster) and even 3.8. We should raise it to 3.9 and update the code.
For examples:
- universal_newlines=True which can be replaced by text=True (edit: this was made possible with Python 3.7)
- Restore a patch I have made to accept multiple --run and --skip: https://gerrit.wikimedia.org/r/c/integration/quibble/+/903256
- pkg_resources / importlib back compat I have introduced in ad279cb435986d997e24b42c32734897a77af9f9
HAS_IMPORTLIB_RESOURCES_AS_FILE = bool(sys.version_info >= (3, 9)) if HAS_IMPORTLIB_RESOURCES_AS_FILE: import importlib.resources else: # Python 3.7 deprecated pkg_resources but importlib.resources.as_file got # introduced in 3.9. We mute the warning until we require Python 3.9. import warnings warnings.filterwarnings( 'ignore', category=DeprecationWarning, message='pkg_resources is deprecated as an API', ) import pkg_resources