diff options
author | DjLegolas <djlegolas@protonmail.com> | 2021-12-25 13:34:49 +0100 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2021-12-28 20:26:38 +0100 |
commit | 897955f0a164349d3191c778cfcb37ee9bff9daf (patch) | |
tree | fd91795cd3fd9a7e226e18e3e14008af3ba03247 /minify_web_js.py | |
parent | [GtkUI] Fix ETA sorting to match WebUI (diff) | |
download | deluge-897955f0a164349d3191c778cfcb37ee9bff9daf.tar.xz deluge-897955f0a164349d3191c778cfcb37ee9bff9daf.zip |
Remove all Python 2 supportdeluge-2.1.0.dev0
* Removed all __future__ imports from code
* Removed all six dependencies
* Removed all future_builtins imports
* Removed all Python 2 related code
Closes: deluge-torrent/deluge#325
Diffstat (limited to 'minify_web_js.py')
-rwxr-xr-x | minify_web_js.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/minify_web_js.py b/minify_web_js.py index a5cd97c59..b91a96329 100755 --- a/minify_web_js.py +++ b/minify_web_js.py @@ -15,19 +15,12 @@ Usage: python minify_web_js.py deluge/ui/web/js/deluge-all """ -from __future__ import print_function, unicode_literals - import fileinput import fnmatch import os import subprocess import sys - -try: - from shutil import which -except ImportError: - # PY2 Fallback - from distutils.spawn import find_executable as which +from shutil import which closure_cmd = None for cmd in ['closure-compiler', 'closure']: |