From: Douglas Bagnall Date: Sat, 17 Aug 2024 08:49:23 +0000 (+1200) Subject: ldb:test:api_base: make flags method a class method X-Git-Tag: tdb-1.4.13~1164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b08427d086ce3d4e9fd1bda9ed69cd367ee18904;p=thirdparty%2Fsamba.git ldb:test:api_base: make flags method a class method Signed-off-by: Douglas Bagnall Reviewed-by: Andreas Schneider --- diff --git a/lib/ldb/tests/python/api_base.py b/lib/ldb/tests/python/api_base.py index d05224cdcae..8c8d15a7ef4 100644 --- a/lib/ldb/tests/python/api_base.py +++ b/lib/ldb/tests/python/api_base.py @@ -35,8 +35,9 @@ class LdbBaseTest(TestCase): def url(self): return self.prefix + self.filename - def flags(self): - if self.prefix == MDB_PREFIX: + @classmethod + def flags(cls): + if cls.prefix == MDB_PREFIX: return ldb.FLG_NOSYNC else: return 0