Modernize inits for python 3.12

This commit is contained in:
oddluck 2024-01-09 01:59:50 +00:00
parent ca043e0f3c
commit 5d1ca4bf86
21 changed files with 24 additions and 26 deletions

View File

@ -33,7 +33,6 @@ Azure: Access Microsoft Azure APIs
import supybot
import supybot.world as world
import imp
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system.
@ -52,9 +51,9 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
imp.reload(plugin) # In case we're being reloaded.
reload(plugin) # In case we're being reloaded.
# Add more reloads here if you add third-party modules and want them to be
# reloaded when this plugin is reloaded. Don't forget to import them as well!

View File

@ -56,7 +56,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)

View File

@ -53,7 +53,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
reload(plugin)
reload(config)

View File

@ -56,7 +56,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from . import deck
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(deck)

View File

@ -50,7 +50,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)

View File

@ -56,7 +56,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
importlib.reload(config)
importlib.reload(plugin) # In case we're being reloaded.

View File

@ -52,9 +52,9 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
imp.reload(plugin) # In case we're being reloaded.
reload(plugin) # In case we're being reloaded.
# Add more reloads here if you add third-party modules and want them to be
# reloaded when this plugin is reloaded. Don't forget to import them as well!

View File

@ -56,7 +56,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)

View File

@ -64,7 +64,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
reload(plugin) # In case we're being reloaded.
reload(config)

View File

@ -61,7 +61,7 @@ from . import plugin
if sys.version_info >= (3, 4):
from importlib import reload
else:
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)
reload(plugin)

View File

@ -56,7 +56,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(plugin)

View File

@ -61,7 +61,7 @@ from . import plugin
if sys.version_info >= (3, 4):
from importlib import reload
else:
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)
reload(plugin)

View File

@ -50,7 +50,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)

View File

@ -50,7 +50,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)

View File

@ -61,7 +61,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)

View File

@ -55,7 +55,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
reload(config) # In case we're being reloaded.
reload(plugin)

View File

@ -34,7 +34,6 @@ Unicode: retrieve unicode character info
import supybot
import supybot.world as world
import imp
# Use this for the version of this plugin. You may wish to put a CVS keyword
# in here if you're keeping the plugin in CVS or some similar system.
@ -57,9 +56,9 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
imp.reload(plugin) # In case we're being reloaded.
reload(plugin) # In case we're being reloaded.
# Add more reloads here if you add third-party modules and want them to be
# reloaded when this plugin is reloaded. Don't forget to import them as well!

View File

@ -56,7 +56,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
reload(plugin) # In case we're being reloaded.
# Add more reloads here if you add third-party modules and want them to be

View File

@ -57,7 +57,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
importlib.reload(config)

View File

@ -57,7 +57,7 @@ __url__ = "" # 'http://supybot.com/Members/yourname/WorldTime/download'
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
importlib.reload(config)

View File

@ -52,7 +52,7 @@ __url__ = "https://github.com/oddluck/limnoria-plugins/"
from . import config
from . import plugin
from imp import reload
from importlib import reload
# In case we're being reloaded.
reload(config)