Fix 'local variable is assigned to but not used' warnings from pyflakes #900

Closed
opened 2010-01-14 04:29:50 +00:00 by davidsarah · 3 comments
davidsarah commented 2010-01-14 04:29:50 +00:00
Owner

The latest version of pyflakes (0.4.0) gives a bunch of warnings about local variables not being used. Fix them.

(the code was pyflakes-0.3.0 clean, but pyflakes-0.4.0 has new checks)

The latest version of pyflakes (0.4.0) gives a bunch of warnings about local variables not being used. Fix them. (the code was pyflakes-0.3.0 clean, but pyflakes-0.4.0 has new checks)
tahoe-lafs added the
code
major
defect
1.5.0
labels 2010-01-14 04:29:50 +00:00
tahoe-lafs added this to the undecided milestone 2010-01-14 04:29:50 +00:00
davidsarah commented 2010-01-14 18:06:25 +00:00
Author
Owner

Most of these warnings look harmless. I'm not sure about a few of them -- for example archives_dir starting at source:src/allmydata/scripts/tahoe_backup.py#L106 .

Most of these warnings look harmless. I'm not sure about a few of them -- for example archives_dir starting at source:src/allmydata/scripts/tahoe_backup.py#L106 .
tahoe-lafs added
minor
and removed
major
labels 2010-01-14 18:06:25 +00:00
warner commented 2010-01-14 19:43:46 +00:00
Author
Owner

I think that archives_dir stuff is vestigal, from before backupdb started tracking directories (it used to have to find and read the most recent snapshot). It can be removed.

I'll make a pass through these at some point.

I think that archives_dir stuff is vestigal, from before backupdb started tracking directories (it used to have to find and read the most recent snapshot). It can be removed. I'll make a pass through these at some point.
warner commented 2010-01-14 22:34:14 +00:00
Author
Owner

changeset:731d15e56f509f9a, changeset:e9223fcd0efd5a5c, and changeset:2e098e2a4ddc66a8 fixes these.. the tree is now pyflakes-0.4.0-clean on my box.

changeset:731d15e56f509f9a, changeset:e9223fcd0efd5a5c, and changeset:2e098e2a4ddc66a8 fixes these.. the tree is now pyflakes-0.4.0-clean on my box.
tahoe-lafs added the
fixed
label 2010-01-14 22:34:14 +00:00
tahoe-lafs modified the milestone from undecided to 1.6.0 2010-01-14 22:34:14 +00:00
warner closed this issue 2010-01-14 22:34:14 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#900
No description provided.