From cbf45558714f9265d5b4767d50eed8c51dba7b05 Mon Sep 17 00:00:00 2001 From: zebrapatch Date: Wed, 21 Jun 2023 07:49:57 -0400 Subject: [PATCH] exclude self --- carbon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/carbon.py b/carbon.py index 0f572ee..6284773 100644 --- a/carbon.py +++ b/carbon.py @@ -168,6 +168,7 @@ def rename(filename: str): pairs[_class.name] = newname for arg in args: + if arg == 'self': continue newname = "".join(random.choice(["I", "l"]) for i in range(random.randint(8, 20))) while newname in used: newname = "".join(random.choice(["I", "l"]) for i in range(random.randint(8, 20)))