summaryrefslogtreecommitdiff
path: root/lorry-controller-remove-old-jobs
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-10 20:05:20 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-10 20:20:48 +0100
commita78d5086d9f0eabe9234ba3db5d15bd728512376 (patch)
tree68466125a6756f6cbd690c5a5bbfa3ad3216c44b /lorry-controller-remove-old-jobs
parentf79b095ece9ff3bc50545ae90aac5de8e5b354e7 (diff)
downloadlorry-controller-a78d5086d9f0eabe9234ba3db5d15bd728512376.tar.gz
Delete assignments to local variables that are not used later
pyflakes found various assignments to local variables which are not used again. In some cases we still need to evaluate the expression that's assigned. In most places we can delete the assignment entirely.
Diffstat (limited to 'lorry-controller-remove-old-jobs')
-rwxr-xr-xlorry-controller-remove-old-jobs2
1 files changed, 1 insertions, 1 deletions
diff --git a/lorry-controller-remove-old-jobs b/lorry-controller-remove-old-jobs
index fcd8b38..78b5596 100755
--- a/lorry-controller-remove-old-jobs
+++ b/lorry-controller-remove-old-jobs
@@ -144,7 +144,7 @@ class OldJobRemover(cliapp.Application):
def post(self, path, data):
url = self.make_url(path)
with urllib.request.urlopen(url, data.encode('utf-8')) as f:
- result = f.read()
+ f.read()
OldJobRemover().run()