mirror of
https://github.com/virt-manager/virt-manager.git
synced 2024-10-27 01:55:20 +03:00
Fix pylint warnings with latest version
This commit is contained in:
parent
f5dab5cdfa
commit
38545e3af8
@ -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):
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user