-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
57 lines (44 loc) · 1.43 KB
/
__init__.py
File metadata and controls
57 lines (44 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
###
# Copyright © 2024, Barry Suridge
# All rights reserved.
#
#
###
"""
Asyncio: Asyncio
"""
import sys
if sys.version_info < (3, 10):
raise RuntimeError(
"This plugin requires Python 3.10 or newer. Please upgrade your Python installation."
)
import supybot
from supybot import world
# Use this for the version of this plugin.
__version__ = "1.1"
# XXX Replace this with an appropriate author or supybot.Author instance.
__author__ = supybot.Author("Barry Suridge", "Alcheri", "barry.suridge@gmail.com")
# This is a dictionary mapping supybot.Author instances to lists of
# contributions.
__contributors__ = {}
# This is a url where the most recent plugin package can be downloaded.
__url__ = "https://github.com/Alcheri/Asyncio"
from . import config
from . import plugin
from importlib import reload
# In case we're being reloaded.
reload(config)
reload(plugin)
# 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!
if world.testing:
try:
from . import test
except ImportError as e:
missing_names = {"test", f"{__name__}.test"}
missing_test_import = "cannot import name 'test'" in str(e)
if getattr(e, "name", None) not in missing_names and not missing_test_import:
raise
Class = plugin.Class
configure = config.configure
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79: