def _retrieve_igd_profile(url):
 try:
  return urllib2.urlopen(url.geturl(), timeout=5).read().decode('utf-8')
 except socket.error:
  raise IGDError('IGD profile query timed out')

def _retrieve_igd_profile ( url ) : try : return urllib2 . urlopen ( url . geturl ( ) , timeout = 5 ) . read ( ) . decode ( 'utf-8' ) except socket . error : raise IGDError ( 'IGD profile query timed out' )
retrieve the devices upnp profile .