Closed Bug 1634717 Opened 4 years ago Closed 4 years ago

android_device.py imports psutil

Categories

(Testing :: General, enhancement, P1)

Version 3
enhancement

Tracking

(firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: gbrown, Assigned: gbrown)

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/7fd1c1c34923ece7ad8c822bee062dd0491d64dc/testing/mozbase/mozrunner/mozrunner/devices/android_device.py#20

psutil is used only by one function in that module, and that function is not called by most clients of that module. Let's reduce scope to avoid a dependency for most callers.

Trivial change to reduce import dependencies for most callers.

Pushed by gbrown@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/fd8b2988e651
Reduce scope of import of psutil in android_device.py; r=jmaher
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: