mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-25 04:21:18 -05:00
Modernize inits for python 3.12
This commit is contained in:
parent
ca043e0f3c
commit
5d1ca4bf86
@ -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!
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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.
|
||||
|
@ -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!
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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!
|
||||
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user