diff --git a/bumblebee_status/modules/core/memory.py b/bumblebee_status/modules/core/memory.py index 9b4a3ab..a4015ff 100644 --- a/bumblebee_status/modules/core/memory.py +++ b/bumblebee_status/modules/core/memory.py @@ -72,12 +72,7 @@ class Module(core.module.Module): data = {} with open("/proc/meminfo", "r") as f: # https://bugs.python.org/issue32933 - while True: - line = f.readline() - - if line == '': - break - + for line in f.readlines(): tmp = re.split(r"[:\s]+", line) value = int(tmp[1]) if tmp[2] == "kB":