Closed
Bug 1035006
Opened 10 years ago
Closed 10 years ago
Clean up pyflakes warnings in Mozbase
Categories
(Testing :: Mozbase, defect)
Testing
Mozbase
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla33
People
(Reporter: chmanchester, Assigned: chmanchester)
References
Details
Attachments
(3 files, 1 obsolete file)
I have a patch running on try here: https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=34fe92434bcb
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
Assignee | ||
Comment 3•10 years ago
|
||
Almost all unused imports or unused variables. Some false positives, some warnings that may indicate further dead code, in particular the uses of "sanitize_dependency" in setup_development.py, a function that was remove two years ago (bug 760722). I'll request review if try looks ok.
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → cmanchester
Status: NEW → ASSIGNED
Assignee | ||
Comment 4•10 years ago
|
||
Comment on attachment 8451396 [details] [diff] [review] Fix pyflakes warnings in mozbase. Try looks pretty ok (treeherder is showing a different set of tests than tbpl -- according to tbpl: https://tbpl.mozilla.org/?tree=Try&rev=5ae43e439b69, try looks pretty ok).
Attachment #8451396 -
Flags: review?(wlachance)
Comment 5•10 years ago
|
||
Comment on attachment 8451396 [details] [diff] [review] Fix pyflakes warnings in mozbase. Review of attachment 8451396 [details] [diff] [review]: ----------------------------------------------------------------- Assuming everything passes try, this looks like a good set of cleanups. Thanks! ::: testing/mozbase/mozfile/mozfile/mozfile.py @@ +265,5 @@ > for resource in (dirnames, filenames): > resource[:] = sorted(resource, key=sort_key) > > files_end = item_marker > + dirpath_mark = item_marker I think you can just take these two lines out altogether. Seems like whoever wrote this function didn't understand python block scoping.
Attachment #8451396 -
Flags: review?(wlachance) → review+
Assignee | ||
Comment 6•10 years ago
|
||
Ok, this deletes those two lines.
Assignee | ||
Updated•10 years ago
|
Attachment #8451396 -
Attachment is obsolete: true
Assignee | ||
Updated•10 years ago
|
Attachment #8451788 -
Flags: review+
Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9579d613f56a
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9579d613f56a
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•