summaryrefslogtreecommitdiffstats
path: root/dmidecode.py
diff options
context:
space:
mode:
authorSlavek Kabrda <bkabrda@redhat.com>2015-01-21 12:57:35 +0100
committerDavid Sommerseth <davids@redhat.com>2015-02-03 21:16:25 +0100
commit5cc3d02060f67317049b6e0549c87a407e030e61 (patch)
tree15174b46cabd9ea08a1c9c35ebb831018577f00f /dmidecode.py
parent9fa1352cd540aa69dd8b59e56de9b8020563e545 (diff)
downloadpython-dmidecode-5cc3d02060f67317049b6e0549c87a407e030e61.tar.gz
python-dmidecode-5cc3d02060f67317049b6e0549c87a407e030e61.tar.xz
python-dmidecode-5cc3d02060f67317049b6e0549c87a407e030e61.zip
Port to Python 3 while maintaining compatibility with Python >= 2.6
Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'dmidecode.py')
-rw-r--r--dmidecode.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dmidecode.py b/dmidecode.py
index cd37b40..ac81365 100644
--- a/dmidecode.py
+++ b/dmidecode.py
@@ -48,7 +48,7 @@ class dmidecodeXML:
elif type == DMIXML_DOC:
self.restype = DMIXML_DOC
else:
- raise TypeError, "Invalid result type value"
+ raise TypeError("Invalid result type value")
return True
def QuerySection(self, sectname):
@@ -65,7 +65,7 @@ class dmidecodeXML:
result_type=self.restype,
section=sectname) )
else:
- raise TypeError, "Invalid result type value"
+ raise TypeError("Invalid result type value")
return ret
@@ -83,7 +83,7 @@ class dmidecodeXML:
result_type=self.restype,
typeid=tpid))
else:
- raise TypeError, "Invalid result type value"
+ raise TypeError("Invalid result type value")
return ret