]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Make lru_cache usage in libpq_docs compatible with python 3.7
authorDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 12 Feb 2021 13:00:04 +0000 (14:00 +0100)
committerDenis Laxalde <denis.laxalde@dalibo.com>
Fri, 12 Feb 2021 13:00:04 +0000 (14:00 +0100)
The "user_function" version (allowing uncalled lru_cache) is only
available since python 3.8.

docs/lib/libpq_docs.py

index e505e78d4a402489e9e4f4e88b4a0d0fcb0f2645..03830fd402bcd20dd0dac866ba0ed61f0adeb975 100644 (file)
@@ -131,7 +131,7 @@ class LibpqReader:
         return self.app.config.libpq_docs_version
 
 
-@lru_cache
+@lru_cache()
 def get_reader():
     return LibpqReader()