mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[V3] Clean up some ugly auto-formatted strings (#1753)
* [V3] Cleanup some ugly auto-formatted strings * Reformat
This commit is contained in:
parent
c1f09326cc
commit
622382f425
@ -41,7 +41,7 @@ def init_loggers(cli_flags):
|
||||
logger = logging.getLogger("red")
|
||||
|
||||
red_format = logging.Formatter(
|
||||
"%(asctime)s %(levelname)s %(module)s %(funcName)s %(lineno)d: " "%(message)s",
|
||||
"%(asctime)s %(levelname)s %(module)s %(funcName)s %(lineno)d: %(message)s",
|
||||
datefmt="[%d/%m/%Y %H:%M]",
|
||||
)
|
||||
|
||||
|
||||
@ -25,9 +25,7 @@ if sys.platform == "linux":
|
||||
PYTHON_OK = sys.version_info >= (3, 5)
|
||||
INTERACTIVE_MODE = not len(sys.argv) > 1 # CLI flags = non-interactive
|
||||
|
||||
INTRO = (
|
||||
"==========================\n" "Red Discord Bot - Launcher\n" "==========================\n"
|
||||
)
|
||||
INTRO = "==========================\nRed Discord Bot - Launcher\n==========================\n"
|
||||
|
||||
IS_WINDOWS = os.name == "nt"
|
||||
IS_MAC = sys.platform == "darwin"
|
||||
@ -457,7 +455,7 @@ def main_menu():
|
||||
def main():
|
||||
if not PYTHON_OK:
|
||||
raise RuntimeError(
|
||||
"Red requires Python 3.5 or greater. " "Please install the correct version!"
|
||||
"Red requires Python 3.5 or greater. Please install the correct version!"
|
||||
)
|
||||
if args.debuginfo: # Check first since the function triggers an exit
|
||||
debug_info()
|
||||
|
||||
@ -32,7 +32,7 @@ if not config_dir:
|
||||
try:
|
||||
config_dir.mkdir(parents=True, exist_ok=True)
|
||||
except PermissionError:
|
||||
print("You don't have permission to write to " "'{}'\nExiting...".format(config_dir))
|
||||
print("You don't have permission to write to '{}'\nExiting...".format(config_dir))
|
||||
sys.exit(1)
|
||||
config_file = config_dir / "config.json"
|
||||
|
||||
@ -101,7 +101,7 @@ def get_data_dir():
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
print("You have chosen {} to be your data directory." "".format(default_data_dir))
|
||||
print("You have chosen {} to be your data directory.".format(default_data_dir))
|
||||
if not confirm("Please confirm (y/n):"):
|
||||
print("Please start the process over.")
|
||||
sys.exit(0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user