def __init__(self):
        """Init batteries stats."""
        self.bat_list = []

        if batinfo_tag:
            self.bat = batinfo.batteries()
        elif psutil_tag:
            self.bat = psutil
        else:
            self.bat = None
def __init__ ( self ) : self . bat_list = [ ] if batinfo_tag : self . bat = batinfo . batteries ( ) elif psutil_tag : self . bat = psutil else : self . bat = None
Init batteries stats.