def _reset_http_connections(http):
 if getattr(http, 'connections', None):
  for conn_key in list(http.connections.keys()):
   if (':' in conn_key):
    del http.connections[conn_key]

def _reset_http_connections ( http ) : if getattr ( http , 'connections' , None ) : for conn_key in list ( http . connections . keys ( ) ) : if ( ':' in conn_key ) : del http . connections [ conn_key ]
rebuild all http connections in the httplib2 .