forked from gooberinc/goober
added permission wrapper
This commit is contained in:
parent
f7042ed8a7
commit
f186e079da
29 changed files with 860 additions and 788 deletions
|
@ -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 it’s k.dot or nothin fam 😎🔫")
|
||||
print(
|
||||
"🚀💥 ALL cleaned. No `_('...')` left on road — now it’s k.dot or nothin fam 😎🔫"
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue