Restore the dynamic_property builtin for third party plugins

This commit is contained in:
Kovid Goyal 2019-05-26 07:21:04 +05:30
parent 10f57cf499
commit 7114083e09
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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