This commit is contained in:
Jonathan Baecker 2020-04-09 18:29:30 +02:00
parent 88fa51693d
commit 57177c8cce

View File

@ -1,4 +1,3 @@
import configparser
import os import os
from platform import uname from platform import uname
from time import sleep from time import sleep
@ -17,19 +16,6 @@ def sizeof_fmt(num, suffix='B'):
return "%.1f%s%s" % (num, 'Yi', suffix) return "%.1f%s%s" % (num, 'Yi', suffix)
class IniParser(configparser.ConfigParser):
"""
config output as json
"""
def as_dict(self):
d = dict(self._sections)
for k in d:
d[k] = dict(self._defaults, **d[k])
d[k].pop('__name__', None)
return d
class SystemStats: class SystemStats:
def __init__(self): def __init__(self):
pass pass