fdutils/db/db.py
def conn_context(self):
        """ A context to open a connection and close it after not needed """
        conn = None
        try:
            conn = self._connect()
            yield conn
        finally:
            if conn:
                conn.close()
 A context to open a connection and close it after not needed 
A context to open a connection and close it after not needed
A context to open a connection and close it after not needed
def conn_context(self):
        conn = None
        try:
            conn = self._connect()
            yield conn
        finally:
            if conn:
                conn.close()
def conn_context ( self ) : conn = None try : conn = self . _connect ( ) yield conn finally : if conn : conn . close ( )
A context to open a connection and close it after not needed
A context to open a connection and close it after not needed
""" A context to open a connection and close it after not needed """
self