diff options
author | David Sommerseth <davids@redhat.com> | 2015-02-03 21:19:13 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2015-02-03 21:19:13 +0100 |
commit | 3b32d9d05a785a744f5e315ef9267d67723e082c (patch) | |
tree | 1f98276536e6a6d479c74ea12b3f97e98213b9af /utils | |
parent | 5cc3d02060f67317049b6e0549c87a407e030e61 (diff) | |
download | python-dmidecode-3b32d9d05a785a744f5e315ef9267d67723e082c.tar.gz python-dmidecode-3b32d9d05a785a744f5e315ef9267d67723e082c.tar.xz python-dmidecode-3b32d9d05a785a744f5e315ef9267d67723e082c.zip |
Fix failing dmidecode.pythonmap() on Python 3
Python 3 uses the Unicode type for strings but it did only support the
Bytes type. So the loading of XML-to-Python-dict-map would fail.
This patch preserves the Bytes type support while adding Unicode support,
which is what is done other places in the code as well.
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'utils')
0 files changed, 0 insertions, 0 deletions