These changes are the raw update to qemu-2.6.
[kvmfornfv.git] / qemu / scripts / qmp / qmp
index 1db3c7f..514b539 100755 (executable)
@@ -91,8 +91,8 @@ def main(args):
         try:
             os.environ['QMP_PATH'] = path
             os.execvp(fullcmd, [fullcmd] + args)
-        except OSError, (errno, msg):
-            if errno == 2:
+        except OSError as exc:
+            if exc.errno == 2:
                 print 'Command "%s" not found.' % (fullcmd)
                 return 1
             raise