Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)
Alias for :meth:`disconnect`

Disconnecting will close all underlying sockets in the connection
pool. If this instance is used again it will be automatically
re-opened. Care should be taken to make sure that :meth:`disconnect`
is not called in the middle of a sequence of operations in which
ordering is important. This could lead to unexpected results.

.. seealso:: :meth:`end_request`
.. versionadded:: 2.1

src/r/e/reprozip-0.1.0-beta/reprozip/pack/experiment/experiment.py   reprozip(Download)
        except:
            reprozip.debug.error('Could not open the database: %s' %sys.exc_info()[1])
            conn.close()
            raise Exception
 
        except:
            reprozip.debug.error('Could not access the collection: %s' %sys.exc_info()[1])
            conn.close()
            raise Exception
 
        if (len_cursor == 0):
            print '** No results found **'
            conn.close()
            raise Exception
 
        if main_phase_index == None:
            reprozip.debug.error('No phases found. This should not happen...')
            conn.close()
            raise Exception
 
        self.__prov_tree.height = height
 
        conn.close()
 
        # updating root information

src/p/y/PyRNA-HEAD/files/scripts/python/glite.py   PyRNA(Download)
                                            families_to_resubmit.append(int(id.split('RF')[1]))    
                                break
        client.close()
 
        print '%i families to resubmit.'%len(families_to_resubmit)