Comment 6 for bug 1320868

Revision history for this message
wzhy90 (wzhy90) wrote :

In the file: /usr/lib/python3/dist-packages/Quirks/quirkinfo.py
Look at line no.45 in for item in self._quirk_info.keys():

value = open(os.path.join(self.sys_dir,
                    'class', 'dmi', 'id', item)).read().strip()

add mode='rb' to open() like this:

value = open(os.path.join(self.sys_dir,
                    'class', 'dmi', 'id', item), mode='rb').read().strip()