summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
authorCalum Lind <calumlind@gmail.com>2019-03-29 10:57:22 +0000
committerCalum Lind <calumlind@gmail.com>2019-03-29 14:27:30 +0000
commitc8b621172ecd3d2dc1d423a153c18ad495f85921 (patch)
treeb1d0021e379b54dcce963cd84090320b43535b71 /packaging
parent02e07dda2a9b44b0fa7c62f11822c2bee5e4e148 (diff)
downloaddeluge-c8b621172ecd3d2dc1d423a153c18ad495f85921.tar.gz
deluge-c8b621172ecd3d2dc1d423a153c18ad495f85921.tar.bz2
deluge-c8b621172ecd3d2dc1d423a153c18ad495f85921.zip
[Lint] Fix flake8 3.7 warnings
- Fix new flake8 warnings from latest version. Note: The `addSlash` variable was orphaned with no reference in Twisted or Deluge code so removed. - Update pre-commit config - New pinned versions. - Fix prettier output. - Use new flake8 hook config and add naming plugin.
Diffstat (limited to 'packaging')
-rw-r--r--packaging/win32/deluge-bbfreeze.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/packaging/win32/deluge-bbfreeze.py b/packaging/win32/deluge-bbfreeze.py
index a58161882..5cd3e35a7 100644
--- a/packaging/win32/deluge-bbfreeze.py
+++ b/packaging/win32/deluge-bbfreeze.py
@@ -154,7 +154,7 @@ for script in script_list:
os.remove(script)
# Exclude files which are already included in GTK or Windows. Also exclude unneeded pygame dlls.
-excludeDlls = (
+exclude_dlls = (
'MSIMG32.dll',
'MSVCR90.dll',
'MSVCP90.dll',
@@ -170,7 +170,7 @@ excludeDlls = (
'SDL_image.dll',
'SDL_ttf.dll',
)
-for exclude_dll in excludeDlls:
+for exclude_dll in exclude_dlls:
try:
os.remove(os.path.join(build_dir, exclude_dll))
except OSError:
@@ -224,14 +224,14 @@ for script in script_list:
script_exe = os.path.splitext(os.path.basename(script))[0] + '.exe'
# Don't add to dev build versions.
if not re.search('[a-zA-Z_-]', build_version):
- versionInfo = VersionInfo(
+ version_info = VersionInfo(
build_version,
description='Deluge Bittorrent Client',
company='Deluge Team',
product='Deluge',
_copyright='Deluge Team',
)
- stamp(os.path.join(build_dir, script_exe), versionInfo)
+ stamp(os.path.join(build_dir, script_exe), version_info)
# Copy version info to file for nsis script.
with open('VERSION.tmp', 'w') as ver_file: