def getconn(obj):
 if (not isproxy(obj)):
  raise TypeError('`obj` is not a NetProxy')
 return _get_conn(obj)

def getconn ( obj ) : if ( not isproxy ( obj ) ) : raise TypeError ( '`obj` is not a NetProxy' ) return _get_conn ( obj )
returns the connection of a netproxy .