diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:12:12 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-08 15:12:12 +0000 |
commit | a7c14e2f29831f4bc5eb18e23e55eb6f7a4e3431 (patch) | |
tree | 54617b4f5f04ee87a2c9e3b97cc88b8626859124 /tools/power/mach_commands.py | |
parent | Releasing progress-linux version 115.7.0esr-1~deb12u1progress7u1. (diff) | |
download | firefox-esr-a7c14e2f29831f4bc5eb18e23e55eb6f7a4e3431.tar.xz firefox-esr-a7c14e2f29831f4bc5eb18e23e55eb6f7a4e3431.zip |
Merging upstream version 115.8.0esr.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tools/power/mach_commands.py')
-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. |