Remove useless initialization of mem_info = {}
This commit is contained in:
parent
ca25c356b6
commit
4f6cec5069
|
|
@ -79,8 +79,6 @@ def meminfo(key: Optional[str] = None) -> Union[dict[str, int], int]:
|
||||||
"""Returns a dict with memory info if called with no args
|
"""Returns a dict with memory info if called with no args
|
||||||
or the value of the given key of said dict.
|
or the value of the given key of said dict.
|
||||||
"""
|
"""
|
||||||
mem_info = {}
|
|
||||||
|
|
||||||
with MEMINFO.open() as file:
|
with MEMINFO.open() as file:
|
||||||
mem_info = {
|
mem_info = {
|
||||||
(columns := line.strip().split())[0].rstrip(':'): int(columns[1])
|
(columns := line.strip().split())[0].rstrip(':'): int(columns[1])
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue