#NEWLINE# def __init__( self , url = DEFAULT_BASE_URL , full_commit = True , session = None ) : #NEWLINE# #INDENT# 'Initialize the server object.\n\n        :param url: the URI of the server (for example\n                    ``http://localhost:5984/``)\n        :param full_commit: turn on the X-Couch-Full-Commit header\n        :param session: an http.Session instance or None for a default session\n        ' #NEWLINE# if isinstance ( url , util . strbase ) : #NEWLINE# #INDENT# self . resource = http . Resource ( url , ( session or http . Session ( ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . resource = url #NEWLINE# #UNINDENT# if ( not full_commit ) : #NEWLINE# #INDENT# self . resource . headers [ 'X-Couch-Full-Commit' ] = 'false'