diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:11:26 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:11:26 +0000 |
commit | fcea19dfd2c426bac0456da850e7c12258e4b9eb (patch) | |
tree | a31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /tools/power | |
parent | Adding upstream version 115.7.0esr. (diff) | |
download | firefox-esr-fcea19dfd2c426bac0456da850e7c12258e4b9eb.tar.xz firefox-esr-fcea19dfd2c426bac0456da850e7c12258e4b9eb.zip |
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/mach_commands.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/power/mach_commands.py b/tools/power/mach_commands.py index 956dcdf440..117a96e1c7 100644 --- a/tools/power/mach_commands.py +++ b/tools/power/mach_commands.py @@ -2,16 +2,15 @@ # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. -from distutils.version import StrictVersion - from mach.decorators import Command, CommandArgument +from packaging.version import Version def is_osx_10_10_or_greater(cls): import platform release = platform.mac_ver()[0] - return release and StrictVersion(release) >= StrictVersion("10.10") + return release and Version(release) >= Version("10.10") # Get system power consumption and related measurements. |