#NEWLINE# @ property #NEWLINE# def swagger( self ) : #NEWLINE# #INDENT# ' some preparation before returning Swagger object\n        ' #NEWLINE# if ( not self . __swagger ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# common_path = os . path . commonprefix ( self . __swagger . paths . keys ( ) ) #NEWLINE# common_path = ( common_path [ : ( - 1 ) ] if ( common_path [ ( - 1 ) ] == '/' ) else new_path ) #NEWLINE# if ( len ( common_path ) > 0 ) : #NEWLINE# #INDENT# p = six . moves . urllib . parse . urlparse ( common_path ) #NEWLINE# self . __swagger . update_field ( 'host' , p . netloc ) #NEWLINE# new_common_path = six . moves . urllib . parse . urlunparse ( ( p . scheme , p . netloc , '' , '' , '' , '' ) ) #NEWLINE# new_path = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for k in self . __swagger . paths . keys ( ) : #NEWLINE# #INDENT# new_path [ k [ len ( new_common_path ) : ] ] = self . __swagger . paths [ k ] #NEWLINE# #UNINDENT# self . __swagger . update_field ( 'paths' , new_path ) #NEWLINE# #UNINDENT# return self . __swagger