added permission wrapper

This commit is contained in:
ctih1 2025-07-23 10:19:08 +03:00
parent f7042ed8a7
commit f186e079da
29 changed files with 860 additions and 788 deletions

View file

@ -15,6 +15,7 @@ pattern = re.compile(
re.VERBOSE,
)
def fix_content(content):
def repl(match):
key = match.group(1)
@ -26,6 +27,7 @@ def fix_content(content):
return pattern.sub(repl, content)
# File types we sweepin 🧹
file_exts = [".py", ".html", ".txt", ".js"]
@ -44,4 +46,6 @@ for subdir, _, files in os.walk(folder_path):
with open(path, "w", encoding="utf-8") as f:
f.write(updated)
print("🚀💥 ALL cleaned. No `_('...')` left on road — now its k.dot or nothin fam 😎🔫")
print(
"🚀💥 ALL cleaned. No `_('...')` left on road — now its k.dot or nothin fam 😎🔫"
)