X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FConfirmInstallWithUser.py;fp=source%2Fsteps%2FConfirmInstallWithUser.py;h=7144e15ae1e85b8e4c221bacd07eef33840d9594;hb=f52080486db907ba6557d1047730c638c4562790;hp=8890fcc21bb0386adb4e71a69589a095b7102ea8;hpb=dc8926ef97d1058c3dcfaad5f1628e2984297e4e;p=bootmanager.git diff --git a/source/steps/ConfirmInstallWithUser.py b/source/steps/ConfirmInstallWithUser.py index 8890fcc..7144e15 100644 --- a/source/steps/ConfirmInstallWithUser.py +++ b/source/steps/ConfirmInstallWithUser.py @@ -36,7 +36,7 @@ WARNING : Installing PlanetLab will remove any existing operating system and """ -def Run( vars, log ): +def Run(vars, log): """ Ask the user if we really want to wipe this machine. @@ -44,25 +44,25 @@ def Run( vars, log ): a BootManagerException if anything unexpected occurred. """ - log.write( "\n\nStep: Confirming install with user.\n" ) + log.write("\n\nStep: Confirming install with user.\n") try: - confirmation= "" - install= 0 + confirmation = "" + install = 0 print welcome_message while confirmation not in ("yes","no"): - confirmation= \ - raw_input("Are you sure you wish to continue (yes/no):") - install= confirmation=="yes" - except EOFError, e: + confirmation = \ + raw_input("Are you sure you wish to continue (yes/no): ") + install = confirmation=="yes" + except EOFError as e: pass - except KeyboardInterrupt, e: + except KeyboardInterrupt as e: pass if install: - log.write( "\nUser accepted install.\n" ) + log.write("\nUser accepted install.\n") else: - log.write( "\nUser canceled install.\n" ) + log.write("\nUser canceled install.\n") return install