Closed Bug 1035006 Opened 10 years ago Closed 10 years ago

Clean up pyflakes warnings in Mozbase

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla33

People

(Reporter: chmanchester, Assigned: chmanchester)

References

Details

Attachments

(3 files, 1 obsolete file)

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: nobody → cmanchester
Status: NEW → ASSIGNED
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 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+
Ok, this deletes those two lines.
Attachment #8451396 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/9579d613f56a
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
Blocks: 1050756
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: