diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2023-02-24 15:56:23 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2023-02-24 15:59:15 +0100 |
commit | 930cf87103284941514283c2a5f6c55cdc56294d (patch) | |
tree | 1e330a73a5472378d9d120e093f2ef26427536cd /generate_pot.py | |
parent | [Lint] Fix pre-commit isort install error (diff) | |
download | deluge-930cf87103284941514283c2a5f6c55cdc56294d.tar.xz deluge-930cf87103284941514283c2a5f6c55cdc56294d.zip |
[Lint] Update pre-commit apps to latest versions
Also update github CI action versions
Diffstat (limited to 'generate_pot.py')
-rwxr-xr-x | generate_pot.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generate_pot.py b/generate_pot.py index efbdc7824..fdc7baec3 100755 --- a/generate_pot.py +++ b/generate_pot.py @@ -39,7 +39,7 @@ xgettext_cmd = [ ] to_translate = [] -for (dirpath, dirnames, filenames) in os.walk('deluge'): +for dirpath, dirnames, filenames in os.walk('deluge'): for filename in filenames: if dirpath not in EXCLUSIONS and not RE_EXC_PLUGIN_BUILD.match(dirpath): filepath = os.path.join(dirpath, filename) @@ -67,13 +67,13 @@ call(xgettext_cmd) # find javascript files js_to_translate = [] -for (dirpath, dirnames, filenames) in os.walk(WEBUI_JS_DIR): +for dirpath, dirnames, filenames in os.walk(WEBUI_JS_DIR): for filename in filenames: if os.path.splitext(filename)[1] == '.js': js_to_translate.append(os.path.join(dirpath, filename)) # find render html files -for (dirpath, dirnames, filenames) in os.walk(WEBUI_RENDER_DIR): +for dirpath, dirnames, filenames in os.walk(WEBUI_RENDER_DIR): for filename in filenames: if os.path.splitext(filename)[1] == '.html': js_to_translate.append(os.path.join(dirpath, filename)) |