From 2236ee5044fa8535dabc3c7b2ff38ef9472dd0fc Mon Sep 17 00:00:00 2001 From: Nicolas Dandrimont Date: Thu, 28 Jan 2010 12:08:32 +0100 Subject: [PATCH] =?UTF-8?q?[hptools]=20On=20vire=20des=20trucs=20qui=20pos?= =?UTF-8?q?ent=20probl=C3=A8me=20pour=20d=C3=A9bugger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20100128110832-ffbb2-4552fce09a569f92c85b88f307e8277c2f82516c.gz --- gestion/hptools.py | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/gestion/hptools.py b/gestion/hptools.py index ac1609da..e9e8545a 100644 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -513,21 +513,12 @@ if __name__ == '__main__' : print "\nSwitchs : ", ' '.join(switchs) print - try: - raw_input("Appuyer sur entrée pour continuer") - except EOFError: - # On lisait depuis un pipe - print '\r'+' '*33+'\r' - for sw in switchs : print sw - try: - # Au cas ou le switch ne répondrai pas - s = hpswitch(sw) - if firmware : - s.upgrade(firmware) - for cmd in cmds : - print s.send_cmd(cmd) - except : - print 'ERREUR' + # Au cas ou le switch ne répondrai pas + s = hpswitch(sw) + if firmware : + s.upgrade(firmware) + for cmd in cmds : + print s.send_cmd(cmd)