Il y a aussi des \n enlever dans cette chane.
darcs-hash:20061001210224-68412-102543ed0763f267b62d98e85a5187fd2c77f34a.gz
This commit is contained in:
parent
4ce327d99f
commit
98454ec1c6
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ class snmp :
|
||||||
if type=="STRING":
|
if type=="STRING":
|
||||||
return var[1:-1]
|
return var[1:-1]
|
||||||
elif type=="Hex-STRING":
|
elif type=="Hex-STRING":
|
||||||
return var.replace(" ","").decode("hex")
|
return var.replace(" ","").replace("\n", "").decode("hex")
|
||||||
elif type=="INTEGER":
|
elif type=="INTEGER":
|
||||||
return unicode(var)
|
return unicode(var)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue