From cfa8f15faabb58ed52b8279f96a2341a48d81de5 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Mon, 10 Jan 2022 17:52:20 +0100 Subject: [PATCH] Update "copyright notice" for Dev cog (#5527) --- redbot/core/dev_commands.py | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/redbot/core/dev_commands.py b/redbot/core/dev_commands.py index 1a236c5e6..ea45acf33 100644 --- a/redbot/core/dev_commands.py +++ b/redbot/core/dev_commands.py @@ -1,3 +1,15 @@ +""" +The original implementation of this cog was heavily based on +RoboDanny's REPL cog which can be found here: +https://github.com/Rapptz/RoboDanny/blob/f13e1c9a6a7205e50de6f91fa5326fc7113332d3/cogs/repl.py + +Copyright (c) 2017-present Cog Creators +Copyright (c) 2016-2017 Rapptz + +The original copy was distributed under MIT License and this derivative work +is distributed under GNU GPL Version 3. +""" + import ast import asyncio import aiohttp @@ -18,14 +30,6 @@ from .i18n import Translator, cog_i18n from .utils.chat_formatting import pagify from .utils.predicates import MessagePredicate -""" -Notice: - -95% of the below code came from R.Danny which can be found here: - -https://github.com/Rapptz/RoboDanny/blob/master/cogs/repl.py -""" - _ = Translator("Dev", __file__) START_CODE_BLOCK_RE = re.compile(r"^((```py(thon)?)(?=\s)|(```))")