mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
test(core): ignore pylint's ImportErrors for distro package (#2830)
This commit is contained in:
parent
55e309125e
commit
081bf663a4
@ -1652,7 +1652,7 @@ class Core(commands.Cog, CoreLogic):
|
|||||||
"""Shows debug information useful for debugging.."""
|
"""Shows debug information useful for debugging.."""
|
||||||
|
|
||||||
if sys.platform == "linux":
|
if sys.platform == "linux":
|
||||||
import distro
|
import distro # pylint: disable=import-error
|
||||||
|
|
||||||
IS_WINDOWS = os.name == "nt"
|
IS_WINDOWS = os.name == "nt"
|
||||||
IS_MAC = sys.platform == "darwin"
|
IS_MAC = sys.platform == "darwin"
|
||||||
|
|||||||
@ -20,7 +20,7 @@ from redbot.core import __version__, version_info as red_version_info, VersionIn
|
|||||||
from redbot.core.cli import confirm
|
from redbot.core.cli import confirm
|
||||||
|
|
||||||
if sys.platform == "linux":
|
if sys.platform == "linux":
|
||||||
import distro
|
import distro # pylint: disable=import-error
|
||||||
|
|
||||||
INTERACTIVE_MODE = not len(sys.argv) > 1 # CLI flags = non-interactive
|
INTERACTIVE_MODE = not len(sys.argv) > 1 # CLI flags = non-interactive
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user