From: Denis Laxalde Date: Fri, 12 Feb 2021 13:00:04 +0000 (+0100) Subject: Make lru_cache usage in libpq_docs compatible with python 3.7 X-Git-Tag: 3.0.dev0~111^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ffd4d6465b5cdd6461d7e9f969312c4558e27eb;p=thirdparty%2Fpsycopg.git Make lru_cache usage in libpq_docs compatible with python 3.7 The "user_function" version (allowing uncalled lru_cache) is only available since python 3.8. --- diff --git a/docs/lib/libpq_docs.py b/docs/lib/libpq_docs.py index e505e78d4..03830fd40 100644 --- a/docs/lib/libpq_docs.py +++ b/docs/lib/libpq_docs.py @@ -131,7 +131,7 @@ class LibpqReader: return self.app.config.libpq_docs_version -@lru_cache +@lru_cache() def get_reader(): return LibpqReader()