Fix pylint warnings with latest version

This commit is contained in:
Cole Robinson 2013-09-19 13:12:05 -04:00
parent f5dab5cdfa
commit 38545e3af8
2 changed files with 3 additions and 3 deletions

View File

@ -652,8 +652,8 @@ def connect_console(domain, consolecb, wait):
# If we connected the console, wait for it to finish
try:
os.waitpid(child, 0)
except OSError, (err_no, msg):
logging.debug("waitpid: %s: %s", err_no, msg)
except OSError, e:
logging.debug("waitpid: %s: %s", e.errno, e.message)
def start_install(guest, continue_inst, options):

View File

@ -235,7 +235,7 @@ def parse_node_helper(xml, root_name, callback, exec_class=ValueError):
Parse the passed XML, expecting root as root_name, and pass the
root node to callback
"""
class ErrorHandler:
class ErrorHandler(object):
def __init__(self):
self.msg = ""
def handler(self, ignore, s):