MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / parse_size

Function parse_size

bleachbit/Unix.py:706–709  ·  view source on GitHub ↗

Parse the size returned by dnf

(size)

Source from the content-addressed store, hash-verified

704
705
706def parse_size(size):
707 """Parse the size returned by dnf"""
708 number, unit = [string.strip() for string in size.split()]
709 return int(float(number) * units[unit])
710
711
712def dnf_autoremove():

Callers 2

dnf_autoremoveFunction · 0.85
pacman_cacheFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected