From ab94df86c4398ec199281d634e704c3290fdbe94 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Tue, 3 Sep 2013 08:47:26 +0200 Subject: [PATCH] Typos fix and minor cleanup Commit 57aab5de copy-pasted a typo, introduced a new one and used bad order of parameters, so I'm fixing it so we're not stuck with it forever. --- virtinst/xmlbuilder.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/virtinst/xmlbuilder.py b/virtinst/xmlbuilder.py index 3e7dde8d..abf79414 100644 --- a/virtinst/xmlbuilder.py +++ b/virtinst/xmlbuilder.py @@ -250,9 +250,8 @@ class XMLProperty(property): def __init__(self, doc=None, xpath=None, name=None, set_converter=None, validate_cb=None, make_getter_xpath_cb=None, make_setter_xpath_cb=None, - is_bool=False, is_int=False, is_yesno=False, - clear_first=None, default_cb=None, default_name=None, - is_onoff=False): + is_bool=False, is_int=False, is_yesno=False, is_onoff=False, + clear_first=None, default_cb=None, default_name=None): """ Set a XMLBuilder class property that represents a value in the XML. For example @@ -281,9 +280,9 @@ class XMLProperty(property): static xpath. This allows passing functions which generate an xpath for getting or setting. @param is_bool: Whether this is a boolean property in the XML - @param is_int: Whethere this is an integer property in the XML - @param is_yesno: Whethere this is a yes/no property in the XML - @param is_onoff: Whethere this is a on/off property in the XML + @param is_int: Whether this is an integer property in the XML + @param is_yesno: Whether this is a yes/no property in the XML + @param is_onoff: Whether this is an on/off property in the XML @param clear_first: List of xpaths to unset before any 'set' operation. For those weird interdependent XML props like disk source type and path attribute.