Skip to content

Commit 378e849

Browse files
committed
perf: lazy evaluate debug logger command.
1 parent 4d00d1c commit 378e849

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

roundup/backends/back_anydbm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@ def opendb(self, name, mode):
296296
if not db_type or hasattr(anydbm, 'whichdb'):
297297
if __debug__:
298298
logging.getLogger('roundup.hyperdb.backend').debug(
299-
"opendb anydbm.open(%r, 'c')" % path)
299+
"opendb anydbm.open(%(path)r, 'c')",
300+
{"path": path,})
300301
return anydbm.open(path, 'c')
301302

302303
# in Python <3 it anydbm was a little dumb so manually open the

0 commit comments

Comments
 (0)