fix current pyflakes warnings #2245

Closed
opened 2014-06-23 20:50:09 +00:00 by warner · 3 comments

The current pyflakes (0.8.1) is more picky than earlier versions, and notices list comprehensions which shadow existing variables in their scope. This patch fixes those, by deleting the pre-existing variable (which is unused by that point). (it also fixes an unused-variable warning, which has probably been around for a while)

The current pyflakes (0.8.1) is more picky than earlier versions, and notices list comprehensions which shadow existing variables in their scope. This patch fixes those, by deleting the pre-existing variable (which is unused by that point). (it also fixes an unused-variable warning, which has probably been around for a while)
warner added the
code
minor
defect
1.10.0
labels 2014-06-23 20:50:09 +00:00
warner added this to the 1.10.1 milestone 2014-06-23 20:50:09 +00:00
Author

Attachment hush-pyflakes.diff (3355 bytes) added

patch to hush pyflakes

**Attachment** hush-pyflakes.diff (3355 bytes) added patch to hush pyflakes

Reviewed hush-pyflakes.diff - LGTM.

Reviewed [hush-pyflakes.diff](/tahoe-lafs/trac-2024-07-25/attachments/000078ac-cf72-565d-2a62-37839343edd0) - LGTM.
Brian Warner <warner@lothar.com> commented 2014-06-23 20:54:48 +00:00
Owner

In /tahoe-lafs/trac-2024-07-25/commit/99479226edc007ad174d605e63355e2e907a8acb:

hush current pyflakes warnings (list comprehensions)

closes #2245
In [/tahoe-lafs/trac-2024-07-25/commit/99479226edc007ad174d605e63355e2e907a8acb](/tahoe-lafs/trac-2024-07-25/commit/99479226edc007ad174d605e63355e2e907a8acb): ``` hush current pyflakes warnings (list comprehensions) closes #2245 ```
tahoe-lafs added the
fixed
label 2014-06-23 20:54:48 +00:00
Brian Warner <warner@lothar.com> closed this issue 2014-06-23 20:54:48 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

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