From 4e3dc0a20a0faaf55aca31056c5c4805c2faa8ca Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Sun, 12 Jul 2020 16:25:58 +0000 Subject: [PATCH] 'Refactored by Sourcery' --- main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index b698913..04c4588 100644 --- a/main.py +++ b/main.py @@ -36,14 +36,12 @@ def getStats(): def decodeReadme(data: str): decodedBytes = base64.b64decode(data) - decodedStr = str(decodedBytes, "utf-8") - return decodedStr + return str(decodedBytes, "utf-8") def generatenewReadme(stats: str, readme: str): statsinReadme = f"{START_COMMENT}\n{stats}\n{END_COMMENT}" - newReadme = re.sub(listReg, statsinReadme, readme) - return newReadme + return re.sub(listReg, statsinReadme, readme) if __name__ == '__main__':