From 7114083e0924cbee90ff8c6ddf692fbadc6857ba Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 26 May 2019 07:21:04 +0530 Subject: [PATCH] Restore the dynamic_property builtin for third party plugins --- src/calibre/startup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/calibre/startup.py b/src/calibre/startup.py index ec3f5b5bbd..b6c662ef6d 100644 --- a/src/calibre/startup.py +++ b/src/calibre/startup.py @@ -17,6 +17,10 @@ builtins.__dict__['_'] = lambda s: s # immediately translated to the environment language builtins.__dict__['__'] = lambda s: s +# For backwards compat with some third party plugins +builtins.__dict__['dynamic_property'] = lambda func: func(None) + + from calibre.constants import iswindows, preferred_encoding, plugins, isosx, islinux, isfrozen, DEBUG, isfreebsd, ispy3 _run_once = False