From 98454ec1c6b89769356dbc2c0b395c881accf6ac Mon Sep 17 00:00:00 2001 From: glondu Date: Sun, 1 Oct 2006 23:02:24 +0200 Subject: [PATCH] Il y a aussi des \n enlever dans cette chane. darcs-hash:20061001210224-68412-102543ed0763f267b62d98e85a5187fd2c77f34a.gz --- gestion/hptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/hptools.py b/gestion/hptools.py index 2e7d5713..cfcfb4a4 100755 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -147,7 +147,7 @@ class snmp : if type=="STRING": return var[1:-1] elif type=="Hex-STRING": - return var.replace(" ","").decode("hex") + return var.replace(" ","").replace("\n", "").decode("hex") elif type=="INTEGER": return unicode(var) else: