#NEWLINE# def __init__( self , logger , server = None ) : #NEWLINE# #INDENT# if server : #NEWLINE# #INDENT# self . server = self #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . server = socket . gethostname ( ) #NEWLINE# #UNINDENT# self . url = ( 'http://%(hostname)s:4001/v2/keys' % { #NEWLINE# #INDENT# 'hostname' : self . server , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . logger = logger