From 3ed84bcad81d5a6e54246410d103caa1c9ad5cc3 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Thu, 22 Dec 2022 11:30:52 +0000 Subject: [PATCH] examples/plugintest: Drop the 'pre-5.0.0' config fixups It's a pain for typing, and should be long since irrelevant. --- docs/examples/plugintest/load.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/docs/examples/plugintest/load.py b/docs/examples/plugintest/load.py index 2639cfd9..314eef19 100644 --- a/docs/examples/plugintest/load.py +++ b/docs/examples/plugintest/load.py @@ -13,19 +13,6 @@ from SubA import SubA from config import appname, appversion, config -# For compatibility with pre-5.0.0 -if not hasattr(config, 'get_int'): - config.get_int = config.getint - -if not hasattr(config, 'get_str'): - config.get_str = config.get - -if not hasattr(config, 'get_bool'): - config.get_bool = lambda key: bool(config.getint(key)) - -if not hasattr(config, 'get_list'): - config.get_list = config.get - # This could also be returned from plugin_start3() plugin_name = os.path.basename(os.path.dirname(__file__))