On Fri, 2012-09-28 at 12:17 -0700, Jesse Keating wrote:
pyanaconda/ui/tui/spokes/askvnc.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/pyanaconda/ui/tui/spokes/askvnc.py b/pyanaconda/ui/tui/spokes/askvnc.py index fc13235..a3cf3c4 100644 --- a/pyanaconda/ui/tui/spokes/askvnc.py +++ b/pyanaconda/ui/tui/spokes/askvnc.py @@ -94,9 +94,14 @@ class VNCPassSpoke(NormalTUISpoke): title = _("VNC Password") category = "vnc"
- def __init__(self, app, data, storage, payload, instclass):
- def __init__(self, app, data, storage, payload, instclass, message=None): NormalTUISpoke.__init__(self, app, data, storage, payload, instclass) self._password = ""
if message:
self._message = message
else:
self._message = _("Please provide VNC password. You will have to type it twice. \n"
"Leave blank for no password")
This could be shortened by using:
self._message = message or _(...)