mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-09 02:42:30 -05:00
* Update deps + allow Python 3.9
* Add in updates from Jack's branch
* Fix multiple target for cross-reference warnings
* Update a few more Python 3.8 occurrences
* Bump further
* Don't install tox in CodeQL environment
* Bump Python version in docs to 3.9.7
* more bumps
* Add missing pin
* Stop using the deprecated distro.linux_distribution()
* Suppress deprecation warning
* Fix OpenSUSE Leap instructions
* Drop Fedora 32
* Add Python 3.10-dev to CI
* meh
(cherry picked from commit 3254698c78)
Co-authored-by: palmtree5 <3577255+palmtree5@users.noreply.github.com>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
Co-authored-by: palmtree5 <3577255+palmtree5@users.noreply.github.com>
Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
This commit is contained in:
@@ -227,3 +227,12 @@ if "--debug" not in _sys.argv:
|
||||
# Individual warnings - tracked in https://github.com/Cog-Creators/Red-DiscordBot/issues/3529
|
||||
# DeprecationWarning: an integer is required (got type float). Implicit conversion to integers using __int__ is deprecated, and may be removed in a future version of Python.
|
||||
_warnings.filterwarnings("ignore", category=DeprecationWarning, module="importlib", lineno=219)
|
||||
# DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal in Python 3.10
|
||||
# stdin, stdout, stderr = await tasks.gather(stdin, stdout, stderr,
|
||||
# this is a bug in CPython
|
||||
_warnings.filterwarnings(
|
||||
"ignore",
|
||||
category=DeprecationWarning,
|
||||
module="asyncio",
|
||||
message="The loop argument is deprecated since Python 3.8",
|
||||
)
|
||||
|
||||
@@ -85,8 +85,7 @@ def debug_info():
|
||||
os_info = platform.mac_ver()
|
||||
osver = "Mac OSX {} {}".format(os_info[0], os_info[2])
|
||||
else:
|
||||
os_info = distro.linux_distribution()
|
||||
osver = "{} {}".format(os_info[0], os_info[1]).strip()
|
||||
osver = f"{distro.name()} {distro.version()}".strip()
|
||||
user_who_ran = getpass.getuser()
|
||||
info = (
|
||||
"Debug Info for Red\n\n"
|
||||
|
||||
@@ -1230,7 +1230,7 @@ class RedBase(
|
||||
The channel to check embed settings for.
|
||||
user : `discord.abc.User`
|
||||
The user to check embed settings for.
|
||||
command : `commands.Command`, optional
|
||||
command : `redbot.core.commands.Command`, optional
|
||||
The command ran.
|
||||
|
||||
Returns
|
||||
|
||||
@@ -3599,8 +3599,7 @@ class Core(commands.commands._RuleDropper, commands.Cog, CoreLogic):
|
||||
os_info = platform.mac_ver()
|
||||
osver = f"Mac OSX {os_info[0]} {os_info[2]}"
|
||||
elif IS_LINUX:
|
||||
os_info = distro.linux_distribution()
|
||||
osver = f"{os_info[0]} {os_info[1]}".strip()
|
||||
osver = f"{distro.name()} {distro.version()}".strip()
|
||||
else:
|
||||
osver = "Could not parse OS, report this on Github."
|
||||
user_who_ran = getpass.getuser()
|
||||
|
||||
Reference in New Issue
Block a user