Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoolkit:master commit in: pym/gentoolkit/eclean/
Date: Wed, 09 Feb 2022 10:48:56
Message-Id: 1644403693.76c188b5189375b3b3b7c92f31491990e29a1669.sam@gentoo
1 commit: 76c188b5189375b3b3b7c92f31491990e29a1669
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 9 10:47:54 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 9 10:48:13 2022 +0000
6 URL: https://gitweb.gentoo.org/proj/gentoolkit.git/commit/?id=76c188b5
7
8 */*: reformat with latest Black 22.1.0
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 pym/gentoolkit/eclean/cli.py | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 diff --git a/pym/gentoolkit/eclean/cli.py b/pym/gentoolkit/eclean/cli.py
16 index bb6deeb..2ad2ae9 100644
17 --- a/pym/gentoolkit/eclean/cli.py
18 +++ b/pym/gentoolkit/eclean/cli.py
19 @@ -309,7 +309,7 @@ def parseSize(size):
20
21 @raise ParseArgsException: in case of failure
22 """
23 - units = {"G": (1024 ** 3), "M": (1024 ** 2), "K": 1024, "B": 1}
24 + units = {"G": (1024**3), "M": (1024**2), "K": 1024, "B": 1}
25 try:
26 match = re.match(r"^(?P<value>\d+)(?P<unit>[GMKBgmkb])?$", size)
27 size = int(match.group("value"))