mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-04-14 00:07:14 +03:00
examples/plugintest: Drop the 'pre-5.0.0' config fixups
It's a pain for typing, and should be long since irrelevant.
This commit is contained in:
parent
d76e827dc5
commit
3ed84bcad8
@ -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__))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user