few fixes

This commit is contained in:
Miroslav Stampar 2011-04-10 20:53:27 +00:00
parent d324704844
commit 940c225d7c
2 changed files with 1 additions and 5 deletions

View File

@ -778,7 +778,7 @@ def __setDNSCache():
kb.cache[args] = socket._getaddrinfo(*args, **kwargs) kb.cache[args] = socket._getaddrinfo(*args, **kwargs)
return kb.cache[args] return kb.cache[args]
if socket.getaddrinfo != _getaddrinfo: if not hasattr(socket, '_getaddrinfo'):
socket._getaddrinfo = socket.getaddrinfo socket._getaddrinfo = socket.getaddrinfo
socket.getaddrinfo = _getaddrinfo socket.getaddrinfo = _getaddrinfo

View File

@ -75,10 +75,6 @@ def smokeTest():
return retVal return retVal
def adjustValueType(tagName, value): def adjustValueType(tagName, value):
# as it's not part of optDict
if tagName == "technique":
value = int(value)
for family in optDict.keys(): for family in optDict.keys():
for name, type_ in optDict[family].items(): for name, type_ in optDict[family].items():
if type(type_) == tuple: if type(type_) == tuple: