From a3b200af9ec577f624cd95565c0e9225e1617c91 Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Fri, 10 Dec 2021 15:58:38 -0500 Subject: [PATCH] explain what we're working around a little bit more --- src/_zkapauthorizer/_storage_server.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/_zkapauthorizer/_storage_server.py b/src/_zkapauthorizer/_storage_server.py index 422b3a2..c38bf76 100644 --- a/src/_zkapauthorizer/_storage_server.py +++ b/src/_zkapauthorizer/_storage_server.py @@ -65,7 +65,11 @@ try: except ImportError: pass -# Hack around a bug in prometheus_client +# The last Python 2-supporting prometheus_client nevertheless tries to use +# FileNotFoundError, an exception type from Python 3. Since that release, +# prometheus_client has dropped Python 2 support entirely so there is little +# hope of ever having this fixed upstream. When ZKAPAuthorizer is ported to +# Python 3, this should no longer be necessary. def _prometheus_client_fix(): import prometheus_client.exposition -- GitLab