[go: up one dir, main page]

Fix psutil usage in Chromoting Linux Me2Me script.

This code was failing in Ubuntu Trusty because psutil is at version
1.2.1, but the previous code was incorrectly detecting it as a "new"
2.0+ API. Fixed the check to be more explicit.

Also, this bypasses the issue of psutil.Error not being defined in
older versions by explicitly trapping the individual exception types
instead of psutil.Error. Note that psutil.error was always a private
API and should never have been used in the first place.

TEST=Works in Ubuntu Precise and Trusty
R=jamiewalch@chromium.org

Review URL: https://codereview.chromium.org/272543006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@269407 0039d316-1c4b-4281-b951-d872f2087c98
1 file changed