From a810d273d198a5722a07a599e1b6cd49ac020a3d Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 12 Oct 2018 11:19:04 +0100 Subject: [PATCH] int(number) after we've checked .isdigit() in utils.parse_number --- src/utils/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/__init__.py b/src/utils/__init__.py index 0cb131ff..c8312ead 100644 --- a/src/utils/__init__.py +++ b/src/utils/__init__.py @@ -93,6 +93,7 @@ def parse_number(s): number = s[:-1] if not number.isdigit(): raise ValueError("Invalid format '%s' passed to parse_number") + number = int(number) if unit == "k": number *= 1_000